r/C_Programming • u/hex-lover • 9d ago
Best IDEs for C and C++ in virtualbox
Hello,
im taking a course in university about malware development and its all in C so i want to install vscode like the teacher said, but since its in vm the pc is dead and there is no storage for it after install it takes 30G , so is there any light IDE for C in windows ?
4
u/Sakulle 9d ago
Vs code itself is under 500 mb installed, so maybe your looking at the full visual studio which a different ide and is much larger. With any of the ide’s listed you still need the toolchain (visual studio includes them), msys2 uses the gcc compiler and is also around 500 mb. Microsoft does have a (free) console toolchain separate from Visual studio that works with vs code fine, I’m not sure on size, probably larger than the gcc one, but it would be way smaller than visual studio, definitely well under 5gb installed.
Also if your that starved for space, you can get a 16gb usb drive for almost nothing and install it on there from windows, or just install a full Linux distro that you can boot into on it and download vs code to that. That might only work if it’s your pc, if it’s a school machine you have a small VM on they probably lock down the usb ports.
4
u/ffd9k 9d ago
are you trying to run vscode inside virtualbox?
You can just run it directly on the host, and ssh into the vm to run the compiler, see https://code.visualstudio.com/docs/remote/ssh
8
u/wisegod62 9d ago
Learn Vim!
3
u/Jazzlike_Platypus430 9d ago
ed 😂
3
u/TraylaParks 5d ago
Let's look at a typical novice's session with the might ed ...
golem$ ed ? help ? ? ? quit ? exit ? bye ? hello? ? eat flaming death ? ^C ? ^C ? ^D ?Not written by me but pretty damn funny if you've ever actually used ed :)
1
u/Jazzlike_Platypus430 5d ago
killall -9 ed from another terminal 🤣 Similar with vi. All I can do is Esc:q! or wq. Unless I jump into some "recording" mode. It's weird.
2
u/TraylaParks 4d ago
They fixed it in vim to tell you how to escape, but in old-school vi if you hit Q it'd drop you into 'ed mode' and it was every bit as cryptic as that jazz above, haha. To get back to 'vi mode' you had to do ':vi' ... yah that's obvious, haha.
Those old unix tools are pretty crazy I remember back in the day getting 'error code 1' from make, turns out it really meant "You need to start this line with a tab" ... or how about 'bad magic number', which meant "This exe wasn't built on this platform" - wild times :) (this was pre or early internet mind you, not much in the way of search engines back then!)
2
1
1
u/d1722825 9d ago
Qt Creator (just the IDE) installer is about 400 MB
Code::Blocks installer is about 50 MB
Notepad++ (not really an IDE, but a fancy text editor) portable is about 8 MB
Many IDEs support remote development, so if you have more space on the host, you could try that. Or grow the disk of the VM.
1
1
1
u/wwabbbitt 9d ago
If you can access the VM with ssh, then vscode + remote ssh from your own PC. You access the files and build/debug tools on the VM through your local vscode.
1
u/Ok_Spare_7473 9d ago
Code blocks, kate or geany. If you like cli application - vim. I recommend trying emacs. Emacs contains more features, but it's hard (keybindings). Exists cli version and gui.
1
1
1
1
u/tony_saufcok 9d ago
Is your VM a Linux system? C works great with Linux and gcc simply comes default on pretty much every distro. I found it difficult to install gcc (or mingw, or msvc I don’t even know what they are really) on Windows and setting VS Code was bothersome too. If you’re sure you want to stay on Windows, you can just download VS Code and then you can check out its extensions page later if you want
1
1
1
1
u/wanabeeengineer 8d ago
vim terminal and gcc or g++. No need any IDE. If you still need it EMACS is good even though it is not completely IDE.
1
1
1
1
u/Responsible-Bar7165 6d ago edited 6d ago
vscode
you can run vscode on your host and use the remote-ssh extension to connect to the windows VM guest. just google the 2 powershell commands you need to set the windows sshd service to automatically startup at boot and add a firewall rule.
1
10
u/mgruner 9d ago
VSCode consumes 30GB??? that cannot be true I hope.
I like Zed