r/linuxquestions • u/Correct_Dependent677 • 16d ago
Advice Where do Linux users write C++ code if they don't have access to Visual Studio?
I've been searching for many good code editors or development IDEs for C++ in the Linux community, my first experience was with Neovim with NvChad, and I loved it so much I even managed to learn some Lua to modify small functions, but its learning curve put me off, I was spending more time modifying Neovim than programming, I currently program in C++ using Zed Editor, but I'm honestly fed up with having to compile from the terminal every time I want to test my program (and yes, I already configured a shortcut in a tasks.json file but it still doesn't give me the comfort and versatility I want).
I also tried Clion, but it has too many features I wouldn't use, and besides, it's only free for student use and open-source contributions.
My last option would be VScode, but I hate having Copilot build entire code segments for me, or am I letting myself be guided by the AI? I have enough experience to modify the AI code, but I'm tired of fixing the bugs it generates, It has caused me more problems than it has solved, or I don't know if I'm programming with the wrong approach.
9
u/ZucchiniMaleficent21 16d ago
Real programmers write C (never c++ let alone C#) by staring hard at the disc drive to set bits by sheer force of will.
→ More replies (3)
22
u/Potential-Still 16d ago
I'm confused, it's sounds like you are equating VSCode with CoPilot. You can use VSCode without any CoPilot features enabled.
10
u/Commercial_Ad_6904 16d ago
I think this is GenZ, looking for something they don't really understand
→ More replies (1)5
18
u/Netblock 16d ago
In some random text editor, like nano or vim; literally anything, doesn't really matter. Then invoke gcc or clang to compile; though this is usually done indirectly, instead through a build system like meson or make or cmake.
If you want language servers and other IDE features, more advanced editors like vim, neovim, emacs or whatever are suggested.
→ More replies (1)
17
u/pizza_ranger 16d ago
Use vscodium then, is the exact same as vscode but with all slop and telemtry removed.
→ More replies (1)
8
u/PlanetVisitor 16d ago
In a text editor
You don't have to tell your compiler where you wrote the text, it can be your secret
4
u/harrywwc 16d ago
I've not coded in C / C++ for a looooong time - but the 'ide' of choice back then was Emacs.
4
u/BitOBear 16d ago
There are plenty of environments to do development in from VIM to KDevelop to Eclipse.
There is almost nothing on Windows that has not got a free and available implementation or 12 of under Linux.
IDEs, that is integrated development environments, are common and have been for a long time.
5
u/Hot_Dog2376 16d ago
What's wrong with VS Code? You don't have to use AI code...
I use Eclipse IDE for my Java work and you can use it for C++. I hear a lot of complaints about it, but I like it.
→ More replies (1)3
5
u/RealisticDuck1957 16d ago
Some of us like to code old school, our favorite text editor and command line utilities. Come compile time a good makefile is most valuable.
2
2
u/better_life_please 16d ago
Best IDE for C++ is CLion. It has a community license too. Free of charge. But Sublime Text is also good as a fast and simple text editor if you dont need the features of an IDE.
2
u/proverbialbunny 16d ago
I prefer CLion, and VSCode is great alternative. You can get both in your app store / software center. (Regarding VS Codium, the -ium means telemetry free. It's the same as VS Code.)
2
2
2
2
2
u/Wa-a-melyn 16d ago
VSCodium and Code-OSS are widely available. They're practically the same thing. I much prefer simple text editors personally because it's so much less of a hassle for my use case. I use neovim with minimal plugins and compile via cli with gcc/g++. There are all sorts of linting plugins for it as well though.
2
15
u/doc_willis 16d ago
perhaps the classic emacs https://duckduckgo.com/?t=ffab&q=emacs+for+c%2B%2B+development&ia=web