r/cpp • u/PointerStudios • Feb 13 '22
What is your favourite IDE for C++
88
u/SerSanchus Feb 13 '22
Who the hell has made profiling of C++ in vscode and how?
29
u/SerSanchus Feb 14 '22
Don't get me wrong, vscode is a great tool and I use it constantly, for C++ projects as well. But it's not comparable to visual studio at the moment. When I want to know if I have bottlenecks in the code in order to optimize I have to use the profiling tools of visual studio. Hopefully one day vscode will get something similar.
2
3
u/TeraFlint Feb 14 '22
A friend of mine, who went fully linux last year decided to switch from VS to VSC + CMake. It seems to work well enough, considering he is not complaining constantly.
52
115
Feb 13 '22
I was sad to not see Qt Creator on that list :( .
44
u/nnevatie Feb 14 '22
This. It's a pretty big oversight, given the list has Code::Blocks, a pretty obsolete IDE.
42
u/GeneralHenry Feb 14 '22 edited Feb 14 '22
Damn I was just about to comment that.
Qt Creator is 100x more friendly to C++ than VS
28
Feb 14 '22
For a fully-featured IDE, it is also crazy fast/snappy. Which speaks to the power of Qt(the framework).
9
6
4
48
39
u/TheHoratian Feb 13 '22
Where is Borland C++?
14
10
u/cjs2k_032 Feb 14 '22
We had turbo C++ IDE in high school and no one told me that it's just super ancient thing which no one used anymore. When I first got my laptop, and had the chance to code, the first thing I did was go and install DOSBOX and run Turbo on it lol. I used online IDEs for a while before getting comfortable with modern IDEs. Turbo was gooood.
5
u/mugu007 Feb 14 '22
I was on the exact same boat. HighSchool programming was all on Turbo C++. Then when I started competitive coding in college, it was all on Online IDEs. I only got around to trying Modern IDEs when working on a personal project where my PC refused to run Turbo C++.
3
0
Feb 14 '22
[deleted]
11
u/SirToxe Feb 14 '22
For sure! Even though it was Turbo/Borland Pascal for me back in the day, but that was basically the same IDE. Once I could run it in glorious 80x50 (instead of default 80x25) it was fantastic for its time.
46
Feb 13 '22
I tried all of the above and possible a dozen more. Some like Code::Blocks are quite good but in my opinion nothing beats Clion.
9
u/essanto Feb 14 '22
The problem with Clion is that it is too slow and memory consuming. If wasn't because of that I would vote for it.
3
Feb 14 '22
Correct me if I'm wrong here but aren't all C++ IDEs rather resource intensive and slow? At least that is what I concluded. Also, if you increase memory Clion becomes pretty fast actually
1
u/essanto Feb 14 '22
Maybe my problem is just memory actually.
1
Feb 14 '22
There's only one way to find out :)
(in case you don't know: main menu -> help -> change memory settings. Try something like 8192 or more if you can)
2
1
26
u/GOKOP Feb 14 '22
I just use vim
→ More replies (7)0
u/ewan15 Feb 14 '22
Using vim inside another IDE(clion) can be good as well (a nice hybrid of the two)
35
u/GRAPHENE9932 Feb 13 '22
KDevelop
7
u/ohell Feb 13 '22
Testify! Every week this question is posted, and I look at the title and go "Why???" but then always I come in in to make a comment bigging up KDevelop!
7
2
u/pgbabse Feb 14 '22
Serious question, is kdevelop just Kate with plugins?
6
u/GRAPHENE9932 Feb 14 '22
No.
The first difference - is good automatic CMake support from KDevelop, just open the folder with CMakeLists.txt and you can run, debug and build your project with one click (for run and debug - some additional clicks to add executable (project can have multipleof them). Kate can't do the same.
Second difference between Kate with plugins and KDevelop - is debugging. Kate have poor support of it.
Both are good, but I prefer KDevelop yet, because debugging.
Sor4MyBadEnglish
1
2
u/Jannik2099 Feb 14 '22
No, completely different. KDevelop has a custom parser, Kate uses LSP
3
u/arturbac https://github.com/arturbac Feb 14 '22
KDevelop has a custom parser,
actually uses libclang, so kdevelop has outstanding code sense and completion.
3
u/Jannik2099 Feb 14 '22
libclang itself is not a full parser, you still have to make sense of the AST yourself.
On that note, you're aware the most common LSP for C++ is clangd?
1
u/arturbac https://github.com/arturbac Feb 14 '22
Ah You are right, internally it has own clang AST parsing.
For me personally it's the best IDE for C++ code development.
→ More replies (4)1
u/Pakketeretet Feb 14 '22
Before I switched all programming to Emacs I used Kdevelop for C++. It's really good for it. Just the right amount of features without all the bloat.
33
u/Dochopocho Feb 13 '22
I don't know if Clion is the best C++ IDE, but the fact that I can use the same "IDE" (shortcuts, debugging workflow, plugins) with Swift (AppCode) and Javascript (WebStorm) makes me like it very much. Context-switching with Visual Studio was not the best experience, even though their debugging tools on Windows are far better than CLion
→ More replies (1)3
u/GaiusJuliusInternets Feb 14 '22
They even have ReSharper that transfers most of this goodness into Visual Studio.
31
20
u/panlabek Feb 13 '22
doom emacs
10
1
u/ThePillsburyPlougher Feb 14 '22
What's the difference between it and spacemacs?
2
u/panlabek Feb 14 '22
Spacemacs has much more features out of the box and it doesn’t let you customize it so much like doom does. Doom is a more of a framework to build config on top rather than full blown emacs distribution.
3
9
u/dzalf Feb 13 '22
CodeLite
3
Feb 13 '22
I tried it 10 to 15 years ago and it looked promising back then. How is it in terms of supporting recent language features today?
1
u/dzalf Feb 14 '22
As far as I'm aware (unless someone proves me wrong) it's 'stuck' in C++17.
I normally use it with mingw (which might be outdated too) however, I have not had the need to upgrade to any most recent compiler.
Your question makes me think if I should try upgrading to a newer compiler. Apart from that, I really like CodeLite
22
u/SickMoonDoe Feb 13 '22
Emacs not being on the list was an oversight.
14
20
14
6
6
10
5
5
19
4
4
4
4
12
1
u/Trainzkid Feb 14 '22
LunarVim anyone?
3
u/PointerStudios Feb 14 '22
It counts as vim
1
u/Trainzkid Feb 14 '22
Live parsing/error-checking and code tab-completion make it a bit different, but fair 'nuff
28
u/Beach-Devil Feb 13 '22
Some of these aren’t even IDEs— they’re text editors
0
Feb 13 '22
[deleted]
22
Feb 13 '22
A built in debugger/buildsystem/project overview/github/memory views/static analysis/syntax highlighting support?
7
u/Compizfox Feb 14 '22
The lines are getting blurred though; a lot of text editors (like Vim and VS code) feature those things as well nowadays (with plugins).
2
u/SkoomaDentist Antimodern C++, Embedded, Audio Feb 14 '22
A built in debugger
This is the key factor. If it doesn't have a builtin debugger, it is not an IDE.
3
u/TeraFlint Feb 14 '22
Interesting. I would have expected that the minimum qualification of an IDE is that it offers a way to build and run your project. Debugging sounds more like a (widely provided) luxury.
2
u/CommunismDoesntWork Feb 18 '22
Luxury? Programming without a debugger is like being a biologist without a microscope. Like yeah, I'm sure you can still do biologist stuff without one, but like damn, don't you want to know what's actually going on under the hood?
1
0
Feb 13 '22
[deleted]
3
u/NotUniqueOrSpecial Feb 14 '22
You underestimate the power of sweaty vim and emacs users
It's not that it can't be done, it's that they're not integrated features, so they are, by definition, not IDEs.
7
u/tangerinelion Feb 13 '22
An environment to develop within?
0
Feb 13 '22
[deleted]
19
u/cfyzium Feb 13 '22
You can compile and debug from a terminal =).
5
1
u/Gaarco_ Feb 14 '22
Which is basically what IDEs do behind the scenes...
You just do it through a GUI but nothing else changes.3
→ More replies (1)4
Feb 13 '22
Something completely different for a start.
The relationship between IDEs and text editors pretty much equals the one between wheels and cars.
8
u/engineerFWSWHW Feb 13 '22
Eclipse cdt
1
u/hedayatvk Feb 14 '22
Eclipse
Me too. I just hope it doesn't die... :(
2
u/engineerFWSWHW Feb 14 '22
It won't. It is being used heavily on automotive, security, defense and IOT and I don't see any signs of it dying.
1
u/hedayatvk Feb 15 '22
That's good to hear, although I can clearly see that its development speed has been slow down. :(
1
u/engineerFWSWHW Feb 15 '22
I'm not sure if there's lot more to be done on eclipse cdt. I had used it since 2009 and I found it pretty solid back then up to now. I also donated to the eclipse foundation because it helps me a lot on my job and my freelance work.
→ More replies (1)
13
3
Feb 13 '22
depends on the state of the code... rough code that requires lots of stepping through to make sense I would much rather be using big vs, but traversing clean code is a infinitely better in code...
3
3
3
u/lookatmetype Feb 14 '22
tmux, neovim, LSP, clangd, treesitter, gdbgui, make - feel like I've got the perfect setup :)
1
u/jurniss Feb 14 '22
never heard of treesitter before - how does it complement LSP/clangd?
2
u/lookatmetype Feb 14 '22
does semantic syntax highlighting - cant believe i was able to program without it!
3
u/kem2021 Feb 14 '22
Visual Studio because of the debugging. The Registers and Disassembly panel are a bless.
By the way, anyone know any other IDE who has these features?
6
u/apezdal Feb 13 '22 edited Feb 14 '22
Vscode. It's inherrent client-server architecture makes it invaluable for cross-platform development. Also it is the only thing that really works in teleworking scenario (except console editors like vim and emacs of course)
Edit: typo
1
u/CommunismDoesntWork Feb 18 '22
Recent versions of jetbrain IDEs also support remote working using a client server architecture
6
u/RomanRiesen Feb 13 '22 edited Feb 14 '22
Vscode + vim plugin + wsl + coz + gdb + valgrind + clang-tidy
Basically a modern version of "unix is my ide".
Tried using vs like 5 times over the last 5 years and always bounced off. From lackluster cmake support to the absolute pain of installing and upgrading libraries on windows I just could not get into it.
4
u/Knuffya Feb 14 '22
VSCode? Are you kidding me?
From my experience, trying to work on medium-sized C++ project with VSCode feels like trying to change a car tire with a phillips-head screw driver
→ More replies (1)1
u/lungdart Feb 14 '22
Everyone knows you need a flat head.
I develop my projects in sublime and don't have a problem with it
2
2
u/vegetaman Feb 14 '22
SlickEdit. Nobody else?
1
u/aleksa71 Feb 14 '22
I use SlickEdit. Over the years I tried few editors and slick beats them all. It is bit painful price wise since I also pay for JetBrains tools. Tried to like CLion but it is much slower and not as nice with custom make files.
2
u/HPCer Feb 14 '22
tmux+vim+ag doesn't even require any plugins to be amazing! I don't think I've come across any issues I couldn't resolve using that combo.
2
2
2
u/MrHyderion Feb 14 '22
NGL, I wouldn't have expected Code::Blocks to come in last. My impression was always that its reputation is fine.
2
2
2
2
2
2
2
5
4
u/cfyzium Feb 13 '22
Eclipse CDT since it has two features I like: global workspace (ability to open several potentially unrelated projects at once) and code peeking (the entire definition and not only interface declaration of a variable/function/type/etc. is shown in a popup window if you hover the mouse over it).
2
u/Numerous-Departure92 Feb 13 '22
Sry, I don’t have the time until Eclipse is ready to show me anything
3
u/cfyzium Feb 13 '22
Eclipse CDT is significantly different from Eclipse IDE for Java. Subjectively, Eclipse CDT is lighter than CLion. And it is definitely less resource consuming when working on a few projects simultaneously since it is one IDE instance vs many.
3
Feb 13 '22
vs code and my second favourite is CLion ( I'm still a student so I don't have to pay for subscription 〜(꒪꒳꒪)〜 ). I like vs code more because it is lightweight, highly customizable and multiplatform.
3
2
u/larso0 Feb 13 '22
I think this one is little known. I use juCi++. After adjusting keybindings, fonts and build dirs to my liking it works great. Using it for cmake projects, and it is much more responsive for linting, suggestions and debugging than VScode with cmake tools extension (debugger is really sluggish in VScode for some reason).
1
u/lieddersturme Feb 14 '22
I would like to say NeoVim, but its autocomplete does not works like VSCode.
For now, VSCode.
1
u/Ezlike011011 Feb 14 '22
I use VSC and the only problem I have with it is how slow it is to work in large projects. It sucks having to wait for a go-to-definition every time in the codebase at work. For everything else it is just the best editing experience on the market
1
1
u/arkiazm Feb 14 '22
I work full-time on remote servers with only terminals. Tried VSCode on host machine with remote ssh plugins, but I felt it slower. So finally settled with vim/neovim.
1
1
1
u/Jutm_n Feb 14 '22
Notepad++
1
u/AtomicStarfish1 Feb 14 '22
Underrated and such beauty. I love n++.
1
u/trailstrider Feb 14 '22
I used to use Notepad++ ALL the time. I will forever be grateful for what those developers did for Windows, providing a super nice, fast and lightweight "IDE". But once VSCode, a cross platform solution, became stable, I've not turned back.
1
u/ivanka2012 Feb 14 '22
Vs code for development, windbg or vscode for debugging depending on the compiler toolchain
1
u/Daniela-E Living on C++ trunk, WG21 |🇩🇪 NB Feb 14 '22
VSCode is really nice and I use it for some small stuff at home (mostly working on the {fmt} library).
VisualStudio OTOH is the only IDE (and development system) that can do all of the heavy-lifting required for our company projects. And it has ReSharper++ that I will never give up on. For that the only alternative is CLion that misses all our other requirements.
1
u/RedwanFox gamedev/unreal Feb 14 '22
I've been using Rider for Unreal Engine as main c++ ide for several years. C++ support has been merged to main Rider recently. Shame that to use Rider you have to buy VS, if you use MSVC compiler on project.
1
u/aKateDev KDE/Qt Dev Feb 14 '22
Kate with the LSP-plugin enabled is extremely good for C++ development nowadays. Unfortunately, the list in the poll is so much restricted that it does not reflect at all the choices we nowadays have.
1
u/Chared_Assassin Feb 14 '22
I use Atom. To me, it feels like a light weight VS.
From install, Atom is basically just a glorified notepad++, but the thing I like about it is that there is heaps of support for mods. I’ve turned my atom basically into VS, but it takes up next to no space on my HDD, works a shit tonne faster and is about as useful.
1
1
1
1
u/TheTrueXenose Feb 14 '22
fullscreen vim with a clock on the satus line, it really help with productivity.
1
1
u/kurta999 Feb 14 '22
Visual Studio.
I'm now working as a fulltime dev with Linux & CMake, both VS and VSCode should be improved...
1
u/LewtedHose Feb 14 '22
Kind of shocked VScode is more favoured the VS. Guess I haven't been up to date for a while now.
2
u/kem2021 Feb 14 '22
Its understable if you think that Visual Studio its for Windows only. But Visual Studio > VSCode imho
1
1
1
1
1
1
1
1
u/RandoRaido Feb 14 '22
The question is missing options for extensions. By far the best experience has been with VS + Resharper C++. Will consider swapping to CLion once Jetbrains manages to unite their codebase.
1
1
Feb 15 '22
I use GNU Emacs for all of my C++ work. CLion, Vim, and Visual Studio just suck by comparison every time I've made earnest effort to try them.
Everypony else itt using GNU Emacs claims to be old, but I turn 22 next month. I guess I'm old too.
1
u/Ksecutor Feb 15 '22
Depends on project size. CLion is cool and all, but only up to certain size of the codebase.
1
1
u/ShadowEfusion Feb 17 '22
My Top Picks
QtCreator - My absolute favorite, especially for large CMake-based projects
CLion - Works great for smaller projects.
Dev C++ - Works great if I'm stuck on Windows and need to get something simple compiling fast
1
1
u/bropocalypse__now Feb 13 '22
VSCode bc it works on windows and linux vm, vs for debugging our code in emulation, and code composer (eclipse clone) for debuggimg cortex-r5 code.
3
u/nryhajlo Feb 13 '22
Ooof, code composer, I forgot about that one. I don't know if I would even classify that as a "favorite", but more of a "I have to".
1
u/bropocalypse__now Feb 13 '22
Its an i have to use it for the debugger, i usually run the build via command line, using run task, and pipe the output into the vscode problems window.
-6
u/Jelvooo Feb 13 '22
It hurts me to see so many people vote for VSCode when it isn't even an IDE.
10
Feb 13 '22
The question is poorly worded, not the options. Would "What is your favorite developing environment for C++" be better?
→ More replies (5)3
u/VictoryForPhil Feb 13 '22
How is it it an IDE. It has tool chains, debuggers, tooling, profiling, version control etc
7
u/SwordsAndElectrons Feb 13 '22
It's a code editor, but the line gets real blurry if you include the plugin ecosystem.
Downvotes are likely because most people don't see a need to be so pedantic. Kind of hard to believe the orignal commenter doesn't get that.
1
u/VictoryForPhil Feb 13 '22
But like it has debugging and such built in so it's even blurrier. It's a weird middle ground I know
1
0
1
1
u/bnl1 Feb 13 '22
I don't really like clunky IDEs so I use VS code. If I had better motorics and muscle memory, I would just use vim.
1
u/Cache_use_only Feb 14 '22
VSCode with Vim keybinding, also VS Code is more of an editor than IDE imo
1
0
-2
Feb 13 '22
VSCode. I do like Vim as a text editor, but as much as I would like using it for programming, one like VSCode is just superior.
-1
0
0
u/TheCrossX Cpp-Lang.net Maintainer Feb 13 '22
VS Code may not be as good as VS at debugging or project configuring but editing in VSC is so good, so efficient that it became my main IDE for C++.
0
11
u/yycTechGuy Feb 13 '22
You left off Codium and Eclipse. And emacs.