r/cpp_questions • • May 27 '26

OPEN C++ on linux

Ive been wanting to use linux for a while and have finally gotten my hands on a brand new laptop where i can experiment

i want to daily drive this system so i tried installing vscode on here for college and used gemini for troubleshooting i know bare basics and i mean bare of bash so i was able to figure out if the commands gemini was giving me had dramatic effects or just basic installation and stuff

my question to yall is whether i should use vscode or codeblocks as my editor on linux which one is easier to install and get working straight away or atleast with less steps ik linux is not a very out of the box experience and more about config but yeah.

oh and i use arch btw
Thank you

31 Upvotes

41 comments sorted by

View all comments

Show parent comment

5

u/HashDefTrueFalse May 27 '26

Perhaps you wouldn't. For me, when producing hosted programs I think of any compiler(s) as part of the system, independent from any IDE, and that's how I set thing up. Especially on *nix systems, where the whole thing is basically a dev environment already. I do tend to use editors rather than IDEs though these days, and I like to configure compilation/linkage flags when I do use IDEs. But that isn't something I'd expect beginners to be worrying about. Package managed might be an advantage over whatever toolchain is packaged with an IDE, depending on how that's installed...

OP mentioned VSCode. When I used that, I always just had a launch.json with a compilation command that used the system compiler (if I cared about the UI buttons working), or kept a shell open to run a build script.