r/C_Programming • • Oct 09 '26

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 ?

5 Upvotes

32 comments sorted by

11

u/mgruner Oct 09 '26

VSCode consumes 30GB??? that cannot be true I hope.

I like Zed

5

u/DiodeInc Oct 09 '26

It's not true.

2

u/Razskler Oct 13 '26

He probably talks about visual studio not visual studio code. To compile C programs in windows he needs to install Microsoft C/C++ build tools and they take some space like 15-20gb If i remember right. Maybe minGW might help

1

u/mikeblas Oct 16 '26

but since its in vm

I think the OP is talking about the size of a VM image.

5

u/Sakulle Oct 09 '26

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 Oct 09 '26

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 Oct 09 '26

Learn Vim!

3

u/Jazzlike_Platypus430 Oct 09 '26

ed 😂

3

u/TraylaParks Oct 13 '26

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 Oct 14 '26

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 Oct 14 '26

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

u/jI9ypep3r Oct 09 '26

Emacs or helix

2

u/[deleted] Oct 09 '26

Neovim

1

u/gudetube Oct 09 '26

Geany, but you'll need GCC installed

1

u/d1722825 Oct 09 '26

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

u/30fpsisbetter Oct 09 '26

Visual C++ 6.0

1

u/wwabbbitt Oct 09 '26

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 Oct 09 '26

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

u/tony_saufcok Oct 09 '26

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

u/penguin359 Oct 10 '26

edit.exe (yes, it's back!)

1

u/Vladislav20007 Oct 10 '26

you got some serious memory leaks, if vscode is taking 30GB.

1

u/wanabeeengineer Oct 11 '26

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

u/burlingk Oct 12 '26

I was going to suggest WSL2 until you mentioned WHAT you are working on. ^

1

u/Responsible-Bar7165 Oct 13 '26 edited Oct 13 '26

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

u/KanjiCoder Oct 14 '26

Notepad++ . That is what PHOSIMP is coded in .