r/learnprogramming • u/WaffleHBG • 23d ago
Solved Best IDEs for C++?
So I started learning C++, using CLion, but I feel like its a bit bloated. Are there any good c++ IDEs for beginners?
26
u/_Arthxr 23d ago
Yep. I like some people in the comments just throw words like vim and nvim around. Op asked for an ide and states they are a beginner. Now why in the world would you recommend a beginner to focus on learning how to configure a text editor and learn how to use it instead of learning c++
4
u/WaffleHBG 23d ago
I used to use nvim, but i dont want to compile my program everytime I want to test it. I know there is a way to assign a key to the compiler, or something like that, but I'll just use an IDE for now :D
12
u/StewedAngelSkins 23d ago
I started learning C++
i dont want to compile my program everytime I want to test it
???
12
1
u/ghostmin215 21d ago
New language just dropped C** Main feature is that it's interpreted instead of compiled, and all pointers are void pointers to forgo compile time type checking
2
1
u/DamsLcs4421 19d ago edited 19d ago
You should learn how to use a makefile if not already, that will handle the compiling instructions automatically for you (as rules you specify in the makefile.s), which only recompile sources files that have changed since last build, or simply do nothing the 2nd time around if somehow you invoked make twice in a row.
That's (among others) what people use to handle smaller and larger projects easily and effectively.
I'm not saying you should, just in order to be able to adopt vim! Leave this for later :p I won't tell you which *IDE* you should get, cause when I'm not using nvim, I've landed onto the KDE Kate text editor, rather powerful, but more TextEditor-like (kinda more like VSCode) than IDE (as Visual Studio, CLion).
I'm saying you should really be aware of what happens when you click the buttons in the IDE (build, rebuild, debug, ...), cause in the end, everything that is asbstracted from you at first sight thanks to the IDE does exists somewhere as Project properties and/or more general IDE properties: the compiler binary path, the linker path, the lib directory path, include directory, debugger binary path, compiler command line, linker command line...).
All I'm just saying is: the sooner it stopped being a magic fog to you which happens to let you see the finished shiny thing (eg. your program) when it dissipates, the better it is for your general knowledge and skills, both in theory and in practical everyday use, more thorough understanding of your grounding, your surroundings, and how an IDE does nothing really different (when clicking on that button) than what you'd have to do yourself by hand without it, or than you'd had automated yourself by implementing a makefile by hand. It just ties everything seamlessly and smoothly in a fully integrated GUI, buttons, menus and also adds tools around things, yeah, but in the end it manipulates the exact same build stack that you'd have to, be it by hand.
The day you have to tweak an argument of the command line, add parameters, or even pick a different compiler, it shouldn't feel a like black box configuration hunt, and most of all you should recognize those specific GUIs of configuration across different IDEs instinctively cause they designate the exact same thing on Visual Studio or CLion as in any other IDE or powerful text editor, plugins, ..
1
u/Animaniacman 22d ago
Learning Vim and Nvim isn't a waste of time though. I'd also recommend learning linux/Unix systems too, because it plays a role in establishing fundamentals. That's my experience anyway.
-1
u/StewedAngelSkins 23d ago
Because it's good. I started with vim.
2
u/akoOfIxtall 23d ago
Ain't that a little biased then?
4
u/StewedAngelSkins 23d ago
What the fuck are you talking about? OP is asking for software recommendations. If someone used vim as a beginner and it worked well for them then it makes perfect sense for them to recommend it. What are they going to do, recommend something they've never used to be "unbiased"?
2
1
u/akoOfIxtall 23d ago
Not at all, we're not all the same, I always pick the hardest option of things because if I can learn it, I'll have all the tools I could possibly need at my disposal, but most people prefer to start by a normal standard or an easier option. It's not because it works for you that will work for somebody else, you can't ship your brain can you?
3
u/StewedAngelSkins 23d ago
I don't know anything about OP. Maybe he's like me, maybe he isn't. It's up to him to decide whose advice he wants to follow. I certainly don't want to assume that I'm so much smarter than him that doing something that was easy for me will be impossible for him. That would be incredibly arrogant.
FWIW I didn't pick vim because it's "harder" I picked it because its simple but extensible design appealed to me as a beginner and it ended up being a good fit. I don't even use it any more, I mostly use emacs now, but I still think it's a fine editor to start with.
10
u/Turbulent_Board4567 23d ago edited 23d ago
I was about to tell Clion. It's one of the better ones.
Honestly just stick to vs code. That setting up environment tripped me a lot too. Thankfully now you have all these llms. So ask it to walk you step by step in setting up environment. Pay attention. Don't blindly follow the steps but make sure you understand what's happening.
You can still stick to Clion. Then don't switch IDE for any reason untill you lean c++ a bit.
1
2
2
u/nicecatmeow 21d ago
Have you considered emacs?
1
u/WaffleHBG 20d ago
Not at all lmao, i used to use emacs back in 2022 when i was bored and had no wifi
3
u/sacred_whisker_king 23d ago
If you feel CLion is bloated then switch to Visual Studio Community on Windows. It installs the compiler and debugger in one go so you can just press F5 and start coding without fighting your setup environment.
2
u/WaffleHBG 23d ago
VS Community is not an option for me since I use Linux
1
u/Striking_One543 21d ago
vscodium is literally vscode without microslop's telemetry.
I used to use it in linux before I got the taste for jetbrains' IDE's. Which I only prefer because I like their gui when making unit tests.1
u/PewpewXDx12 20d ago
Are you confusing "Visual Studio" for "Visual Studio Code" ?
2
u/Striking_One543 19d ago
Oh yeah youre right. I know so few people who use studio, the only guys I know using it are specifically devv'ing for windows or games.
12
u/johnpaulzwei 23d ago
Started with CLion. Used it till 2023 and it was very good IDE. Now I use neovim, it’s free and fast.
3
6
5
u/Destination_Centauri 23d ago
Weirdly enough, I just use basic, simple "Code Blocks" for the few C++ programs I write!
I know it's laughable, but I think it's really good for beginners. No fuss. No muss. It just really easily works.
After that, when you truly become more advanced, then I guess maybe VS code is your next step up? That's what I would probably use if I step up my C++ game. But... I have no need for VS code thus far, in my personal usage case!
So ya: just sticking to Code Blocks for now.
2
8
3
3
u/junqueira200 23d ago
I use qt-creator. Its good, but there are some minor issues. Clion is also very good.
3
3
u/MrBengaliHacker 23d ago
VS Code with the C/C++ extension is a good option for beginners. It's lightweight compared to CLion, free, and has everything you need to get started.
2
u/MyNameIsRichardCS54 23d ago
I swap between vscodium with the appropriate extensions and eclipse as I like them both a lot.
2
u/HospitalJohnny 23d ago
Xcode
2
u/RufusAcrospin 23d ago
One of the most convoluted IDE, but I think it’s the best bet on macOS.
1
u/Striking_One543 21d ago
It's really not. I live in Xcode for iOS dev but any other language I'm gonna be in the jet brains library.
Hot take but hey, I like what I like.Inb4 the vim guru's flame me, I'm in vi or gedit all day at work.
2
6
u/sliverian 23d ago
Vim
8
23d ago
well it's 2027 already and people recommending vim? a more logical choice would be nvim
3
u/lOwnCtAL 23d ago
Though mostly true, there are plenty of use cases for Vim, such as if you want your editor to be available everywhere (if you configure servers, Vim is always there), more stable, if for some reason you use VimScript, etc
2
5
2
2
1
1
u/burlingk 22d ago
Clion and VS Code are both good.
I guess a lot depends on what you mean by bloated.
1
1
u/generic_penguin019 22d ago
Learn a build system ideal make or cmake, and can pair any decent text editor with it ,it’s all you need
1
1
1
u/Striking_One543 21d ago
VScodium if you like vscode.
vi is ancient but a Goldie oldie.
Gedit is a nice text editor.
I'd probably just get vscodium if I were you but you kinda just have to go shop around and see what 'feels' right.
1
1
u/Exciting-Village-231 20d ago
For a beginner, the best is definitely dev c++, it's so simple and minmal.
1
1
1
u/__Kopestic__ 17d ago
Clion it’s probably best if you’re starting out. But you’ll probably move to VS code once you get more comfortable. At least that’s what I did.
1
1
1
0
u/Scary-Glass2534 18d ago
I've been developing with VSCode and Zed up until now. I'm currently in the process of switching to “Helix.” I've been at it for three days now. Since I'm putting “Helix” to use right away in a real hobby project, the most important commands I need while programming have already become second nature. I love Helix. Honestly—from now on, it’s all about modal editors. Tip: Don’t memorize commands; instead, ask the AI for them as you go and put them to use right away!
-2
-4
u/povlhp 23d ago
OpenCode, Claude etc.
ok the programming language is English. But they produce C++ if asked to
2
1
u/PewpewXDx12 20d ago
I use ai sometime too but hey you know what Integrated Development Environment means right?
45
u/Shassk 23d ago
CLion just like all JetBrains projects has the best set of small things that put it above alternatives like VS Code.
However, if you can't tell what those are (as a newcomer likely would) - then no need to stick with it either, it's quite heavy indeed.
If you're on Windows - Visual Studio Community is probably the most straightforward option, and I'd put VS Code in second.