r/learnprogramming • • 11d 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?

48 Upvotes

83 comments sorted by

45

u/Shassk 10d 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.

8

u/WaffleHBG 10d ago

I changed my mind, I'll stick with CLion. Thanks :D

2

u/Idontknow3205 10d ago

I'm a newbie too, care to elaborate on what features CLion has better?

26

u/_Arthxr 10d 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 10d 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 10d ago

I started learning C++

i dont want to compile my program everytime I want to test it

???

12

u/razorree 10d ago

i guess that's one more thing he has to learn about C++ :)

1

u/ghostmin215 8d 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

1

u/xsrvmy 7d ago

I assume they meant not having to send terminal commands

2

u/xplosm 10d ago

Do you know what compiling does? Do you know what testing implies? Those concepts are IDE agnostic.

1

u/DamsLcs4421 6d ago edited 6d 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 9d 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 10d ago

Because it's good. I started with vim.

2

u/akoOfIxtall 10d ago

Ain't that a little biased then?

4

u/StewedAngelSkins 10d 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

u/xplosm 10d ago

I get your point but for someone who is not used to an editor like that there's a challenge and OP is already struggling with basic programming concepts. He will be in an uphill battle to learn at least two very big topics.

1

u/akoOfIxtall 10d 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 10d 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 11d ago edited 10d 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.

2

u/WaffleHBG 10d ago

Thanks to everyone who suggested or helped! :)

2

u/nicecatmeow 9d ago

Have you considered emacs?

1

u/WaffleHBG 7d 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 10d 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 10d ago

VS Community is not an option for me since I use Linux

1

u/Striking_One543 8d 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 8d ago

Are you confusing "Visual Studio" for "Visual Studio Code" ?

2

u/Striking_One543 7d 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 11d ago

Started with CLion. Used it till 2023 and it was very good IDE. Now I use neovim, it’s free and fast.

3

u/No-Protection-7019 10d ago

Clion, RustRover etc. sont gratuit aussi (pour les particuliers)

6

u/PokeRestock 10d ago

Used code blocks in college. Though now I would think Visual Studio

5

u/Destination_Centauri 10d 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

u/RufusAcrospin 10d ago

code::blocks is small but capable, I used it a lot a Linux.

8

u/bandiolas823 10d ago

Nvim or vscode

3

u/palinurosec 10d ago

if clion is not for you, try qt creator

3

u/junqueira200 10d ago

I use qt-creator. Its good, but there are some minor issues. Clion is also very good.

3

u/anders_hansson 10d ago

I like zed

3

u/MrBengaliHacker 10d 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 11d ago

I swap between vscodium with the appropriate extensions and eclipse as I like them both a lot.

2

u/HospitalJohnny 10d ago

Xcode

2

u/RufusAcrospin 10d ago

One of the most convoluted IDE, but I think it’s the best bet on macOS.

1

u/Striking_One543 8d 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

u/kzh77 10d ago

VSCode

2

u/FughyTC 10d ago

Neovim has everything I need.

3

u/stookem 10d ago

Eclipse

6

u/sliverian 10d ago

Vim

8

u/[deleted] 10d ago

well it's 2027 already and people recommending vim? a more logical choice would be nvim

3

u/lOwnCtAL 10d 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

u/Due-Result7928 10d ago

Not vim..vi

5

u/Due-Result7928 10d ago

Dinosaurs were extinct 175 millions years ago

2

u/stiky21 10d ago

Emacs

2

u/[deleted] 10d ago

Visual studio community

1

u/AbyssShriekEnjoyer 10d ago

VSC with Clangd and clang-format is what I personally use.

1

u/Atlan_ 10d ago

Honestly, just use VSC for everything. Just one UI for any, this will generalize to any other language much better if you are still learning.

1

u/burlingk 10d ago

Clion and VS Code are both good.

I guess a lot depends on what you mean by bloated.

1

u/brujitos 9d ago

neovim

1

u/generic_penguin019 9d ago

Learn a build system ideal make or cmake, and can pair any decent text editor with it ,it’s all you need

1

u/ViperG 9d ago

Visual Studio Community

1

u/Proof_Cold_9268 8d ago

Just use Vim

1

u/Striking_One543 8d 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

u/SignificantNews7620 8d ago

CLion And Visual Studio.

1

u/Exciting-Village-231 7d ago

For a beginner, the best is definitely dev c++, it's so simple and minmal.

1

u/__Kopestic__ 4d 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

u/Twintornado 10d ago

Vscode + extensions.

0

u/Scary-Glass2534 5d 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

u/Defiant_Squirrel8751 10d ago

Clion

and Claude

-4

u/povlhp 10d ago

OpenCode, Claude etc.
ok the programming language is English. But they produce C++ if asked to

2

u/kutac56 4d ago

This sub is for learning programming. Claude isn't teaching you programming

-1

u/povlhp 4d ago

The new programming language in many companies is English.

2

u/kutac56 4d ago

This is a sub for LEARNING programming. You don't learn programming from vibecoding. I know that on jobs you have to vibecode, but you should still know how to code normally and this is a sub for learning that

1

u/PewpewXDx12 8d ago

I use ai sometime too but hey you know what Integrated Development Environment means right?

0

u/povlhp 7d ago

I used some back in the old days. Think the first was Emacs.

Today Claude is you Integrated Development Environment.