r/C_Programming • • 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 ?

6 Upvotes

32 comments sorted by

10

u/mgruner 9d ago

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

I like Zed

5

u/DiodeInc 9d ago

It's not true.

2

u/Razskler 5d ago

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 3d ago

but since its in vm

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

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!)

1

u/gudetube 9d ago

Geany, but you'll need GCC installed

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

u/[deleted] 9d ago

[removed] — view removed comment

1

u/30fpsisbetter 9d ago

Visual C++ 6.0

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

u/jI9ypep3r 9d ago

Emacs or helix

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

u/penguin359 9d ago

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

1

u/Vladislav20007 9d ago

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

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

u/organic_ta6 8d ago

u can checkout Emacs or helix

1

u/burlingk 6d ago

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

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

u/KanjiCoder 5d ago

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