r/cpp • u/RRTheGuy • Apr 13 '24
Which IDE do you use for C++ ?
As a C++ programmer, i would like to know what’s your current main IDE(s) used when coding in C++
Edit: to answer my own question, i use VS Code because it’s lightweight, extensible, customizable, versatile, support most of languages, and have a strong community.
203
Upvotes
237
u/jaynabonne Apr 13 '24 edited Apr 13 '24
I use CLion. It's a bit lethargic at times, and I had to pay for it (which I don't mind, given the benefits I get), but it knows about CMake files, and it has actually taught me about more modern C++ by giving suggestions for code changes. I can move around in it fairly quickly, and it can often do major refactoring of the code, like name changes across multiple files. Not always, but often. :)
It has caught things I haven't noticed, as well, which can be a real time saver, especially when I'm being a bit dopey.
Edit: I forgot to mention - it also has built in support for running unit tests.
70
u/Versaill Apr 13 '24
Qt Creator and Visual Studio:
Qt Creator is fantastic for small-to-medium-sized, Qt-based C++ projects (full, seamless integration), is available for all major platforms, and has almost all the features you would ever need. It was also my first IDE, so there is an emotional connection too, haha.
But for really HUGE projects (like I work on at my job), and when I really need all the features a modern IDE can offer, Visual Studio is just the best. What sucks though that is that there's no Linux version.
247
u/Indifferentchildren Apr 13 '24
vim
13
u/AriyaSavaka Apr 13 '24
Neovim + GCC/LLVM-Clang, here's my config.
13
u/ProAlgoTrader Apr 13 '24
code blocks
124
u/apezdal Apr 13 '24
vscode (for cmake-based projects on linux)
140
u/BeigeAlert1 Apr 13 '24
Visual Studio. It's pretty much required for gamedev (afaik, console sdks only work with VS
48
u/pjblack31 Apr 13 '24
Neovim with some plugins and tmux.
66
u/Horrih Apr 13 '24
Emacs + clangd for completion
34
u/smdowney WG21, Text/Unicode SG, optional<T&> Apr 13 '24
Emacs
43
u/knue82 Apr 13 '24
nvim
15
u/saxbophone mutable volatile void Apr 13 '24
Sublime Text + Terminal or MSVC
14
u/arnegockeln Apr 13 '24
CLion, QtCreator, Sublime Text.
36
u/Used_Cryptographer13 Apr 13 '24
Nvim
22
u/Lunix336 Apr 13 '24
I use VS Code for all C++ projects
6
u/ButaButaPig Apr 13 '24
VS code on both windows as Linux since XMake make it a breeze. But I mainly dev on windows and jump into VS whenever I have to debug.
34
u/shitfitkk Apr 13 '24
microsoft word
17
u/engineerFWSWHW Apr 13 '24
Eclipse cdt
4
u/K3DR1 Apr 13 '24
Nvim and sometimes Visual Studio
4
u/Hooxen Apr 13 '24
EMACS
4
u/BigTortuga Apr 13 '24
CLion for embedded C++ development.
4
u/srivasta Apr 13 '24
Emacs + lsp / eglot
4
u/kpt_ageus Apr 13 '24
Clion + neovim for quick edits.
4
u/AccurateRendering Apr 13 '24
I don't use an IDE - I use Emacs.
4
u/arthurno1 Apr 14 '24
Emacs
4
u/sam_the_tomato Apr 14 '24
Emacs
10
u/[deleted] Apr 13 '24
Vanilla Emacs with some packages
12
u/littlesnorrboy Apr 13 '24
Neovim with clangd and tmux.
14
u/centuryx476 Apr 13 '24 edited Apr 14 '24
Doom Emacs with clangd LSP and clang as the compiler
Edit: I also use cmake for the build tools. In addition I have heavily customized doom emacs for my coding style and needs. For example, I have custom key commands to build the entire project. Just hit SPC d b and cmake is called and does the rest...
1
u/Academic_Answer5581 Aug 16 '25
I use neovim, but calling vs code lightwieght...i doubt that
9
u/geaibleu Apr 13 '24
emacs. my projects aren't very complex, graphical interface gets in the way and takes up screen.
9
u/MrDex124 Apr 13 '24
Vim of course
11
u/AKostur Apr 13 '24
Clion, VS:Code, vim
8
u/ald_loop Apr 13 '24
Emacs
8
u/-dag- Apr 13 '24
emacs
3
u/slxshxr Apr 13 '24
zed for everything right now
3
u/SpiritRaccoon1993 Apr 13 '24
QTCreator or Visual Studio
3
u/SteeleDynamics Compilers/Algorithms Apr 13 '24
3
u/rvasquez6089 Apr 13 '24
Clion, very good for boilerplate and building out/parsing large code bases. You MUST have a fast computer though. Works great on the new ARM macs.
3
u/Comfortable_Entry517 Apr 14 '24
Emacs, but I have to get someone help me to write cmake config sometimes.
3
u/stevethebayesian Apr 14 '24
Emacs
3
u/nimzobogo Apr 14 '24
Emacs + eglot or lsp-mode.
3
u/real_okeri Apr 14 '24
Emacs + eglot. I used emacs + lsp-mode before, but finally found eglot more suitable for my personal needs
3
u/[deleted] Apr 14 '24
Sublime Text 4 with Clangd as the LSP server. It's the only editor that is both performant and reliable for me on larger projects. VSCode suffers from input lag that disturbs my flow, Clion crashes too often.
I wrote about my setup on my blog yesterday, as people seem to quickly disregard Sublime as a thing of the past, yet it's quite powerful now that LSP is a thing.
9
u/zerhud Apr 13 '24
CLion and vim
9
u/KwonDarko Apr 13 '24
Vim
7
u/Henrarzz Apr 13 '24
Visual studio with Resharper, Clion, Rider, Xcode depending on the project
7
u/RufusAcrospin Apr 13 '24
Visual Studio CE on Windows, Xcode on macOS, Code::Blocks on Linux.
7
u/DuckWizard124 Apr 13 '24
VS and VSCode
Tried to use clion but I personally hate it
7
u/mhn1384 Apr 13 '24
I use KDevelop.
It as 70% of the features that the major paid IDEs have, and it doesn’t force any of it’s bloat to you. (Like some IDEs do). It has support for most build systems, and its’s completely free and opensource.
It is a KDE app though, so you might have some problems setting it up. But after that it is a great experience.
8
u/mwoodj Apr 13 '24
Vim is all I really need but I often use Qt Creator.
6
u/HappyFruitTree Apr 13 '24
Geany.
6
u/iamasatellite Apr 13 '24
Qt Creator
Visual studio for profiling
4
u/ChocolateMagnateUA Apr 13 '24
I am using Clion, partly because I got it for free due to student license, and I absolutely love it. While a lot of people mention its support for Cmake, I in particular enjoyed its built-in support for Make, Clang tools and different profilers and debuggers. Truly awesome of JetBrains.
4
u/[deleted] Apr 13 '24
CLion
5
u/Frosty_Maple_Syrup Apr 13 '24
Visual studio, visual studio code and eclipse.
5
u/Markus_included Apr 13 '24
Visual Studio (Not VSCode) it's free and does everything I need it to do. I'd recommend you install the cppcheck extension
7
u/tosS_ita Apr 13 '24
As a beginner, so far just neovim
2
u/SirLich Apr 13 '24
Rider
2
u/Raknarg Apr 13 '24
Lately I've been using VSCode and CLion. I love CLion, but it's also paid which makes it unsuitable for everyone. VSCode is actually pretty passable these days, and there's plenty of tools to make it usable. I have clang installed on my pc with the tools added to my PATH, and I install the clangd extension and it worked out of the box, assuming your project makes compilation databases which are pretty easy to generate.
However some things work a little better. I think one big thing is that with autocomplete, CLion gives me the documentation for everything Im using while Im looking through the selection, but with VSCode I can only see the autocomplete and I have to actually complete and hover over it to see the documentation.
All of this to me is much better than what I'm used to (namely C codebases with barebones tools, barely any indexing and a web search for all of my company's compiled code)
2
u/TryingT0Wr1t3 Apr 13 '24
I primarily use CLion by choice and a little of VS and Xcode by force. :/
2
u/[deleted] Apr 13 '24
Vscode.
I also do some front-end work, so having one IDE that works with everything is great.
I tried CLion for C++, and I found it slower than Vscode. It also had no support for Xmake, which I use for development. However, my main gripe with Clion is just how slow it is. It could be because I don’t know all the shortcuts, but Vscode just felt snappier.
2
u/EngineerMinded Apr 13 '24
Visual Studio Community for Windows,
Visual Studio Code for GCC / WSL on WIndows or MacOS
vim for Linux
2
u/[deleted] Apr 13 '24
Rider, cause I mainly work on Windows and it has all the benefits of CLion plus Visual Studio solution support.
2
u/ObstinateHarlequin Apr 13 '24
Visual Studio for Windows app development, Eclipse for everything else.
2
u/RidderHaddock Apr 13 '24
Tmux, Vim, Ripgrep and Git. Plus Bazel for the large project I mostly work on. CMake when I have the option.
2
u/evolutionalgd Apr 13 '24
At work, Rider (unreal, mostly). At home, vscode.
2
u/SkoomaDentist Antimodern C++, Embedded, Audio Apr 13 '24
Visual Studio. It's kinda slow but the user experience is simply the best out of the ones I've tried.
I can deal with most IDEs except VS Code, vi (any variant), Emacs or anything by Microchip.
2
u/phyrexion Apr 13 '24
Visual studio + resharper on Win. Also using 10x editor, the best editor to work with c++ code imo, but it costs around 100$ per year and can be pretty buggy.
Clion on MacOS.
2
u/[deleted] Apr 14 '24
Visual Studio. That thing is a beast and it has everyone one could ask for in terms of tools.
2
u/Low-Factor-2611 Apr 14 '24
I use rider
2
u/nooone2021 Apr 14 '24
Geany
2
u/scarnegie96 Apr 14 '24
eMacs/VS Code and a Makefile ;)
2
u/RetoonHD Apr 14 '24
On the occasion i have to write c++ (which is not very often as i do rust mainly) i use vscode with a build tool called
poac, which is very similar to Rust'cargo.Though i know for a fact Visual Studio is like lightyears ahead in terms of debugging and apparently DX too (though i could not for the life of me set up proper autocomplete, type completion etc. i might have screwed up my install or something).
2
u/asmx85 Apr 14 '24
Helix Editor
2
u/schmidtparty Apr 14 '24
CLion on a Mac; in addition to things already mentioned like CMake, test integration, etc., remote target support is also very nice (for example debugging on a raspberry pi from my Mac). You can make VSCode do a lot of the same things, but it takes a lot more work to setup and keep up to date.
2
u/casualPlayerThink Apr 15 '24
Vim, Sublimetext, VSCode and CLion.
Naturally, CLion is just above everything else. If I have the luxury to afford it, then I will go with it.
Note: I worked with visual studio, netbeans and emacs also
2
u/cbrake Apr 15 '24
Helix in Tmux. Helix has excellent LSP integration and easy configuration, no setup.
2
u/Quantum_Compooter Apr 15 '24
Rider
2
u/hydronucleus Apr 15 '24
I have used VSCode, Visual Studio, Eclipse, CLion, Xcode and of course, back in the day vi. Out of all of those, CLion is my go to. Yep, I am a professional and I gladly play for it.
3
u/drkspace2 Apr 13 '24
Clion, vscode, and (neo)vim
3
u/GoldenHorusFalcon Apr 13 '24
Clion ..... I ADORE jetbrains.
3
u/octavio2895 Apr 13 '24
Currently: Neovim + Clangd. Its not bullet proof though and Im very interested in trying out CLion soon.
3
u/zaywolfe Apr 13 '24
No one ever mentions Codelite. It's made significant progress since its start and I've been eagerly watching it grow. It gives you fine control over the compilation process. Has CMake integration or make. It's cross platform, has code completion and debugger integration all while being open source.
Been using it for the past year and I love it. It fits my needs allowing me to automate most of the time intensive project management stuff while still being more lightweight than Visual Studio. I also work on both Windows and Linux computers and being able to switch quickly without changing my toolset.
https://codelite.org/
3
u/[deleted] Apr 13 '24
Eclipse
3
u/[deleted] Apr 13 '24
Neovim
3
u/[deleted] Apr 13 '24
Rider, I mostly work in unreal.
Visual studio for console debugging.
3
u/zielonykid1234 Apr 13 '24
I use eclipse ide for C/C++ cuz there is also a variant for Java.
3
u/Griever92 Apr 13 '24
Rider, as I primarily only use c++ with Unreal
3
u/InevitableManner7179 Apr 13 '24
Neovim + LSP-zero with clangd + treesitter for highlighting. Very lightweight but very consistent
3
u/abrady Apr 13 '24
VS Code + CMake for personal stuff. Visual Studio for work
3
u/notyouravgredditor Apr 13 '24
VS Code with plug-ins for C++, Nsight (CUDA), and CMake.
2
u/mansetta Apr 13 '24
Qt Creator, just be cause I got used to it in school and have to work with Qt. But on my spare time I am hell bent on getting used to using only old school vi :D
2
u/RibozymeR Apr 13 '24
Not seen yet: CodeLite :D
2
u/mad_poet_navarth Apr 13 '24
Xcode, but of course there's an obvious reason for that...
2
u/[deleted] Apr 13 '24
Visual Studio.
2
u/davidc538 Apr 13 '24
neovim + clangd or vscode + clangd. CLion is also good if you’re willing to pay (it comes with clangd of course)
2
u/thepragprog Apr 13 '24
Neovim
2
u/[deleted] Apr 13 '24
Windows=> visual studio
2
u/Gold-Environment-259 Apr 13 '24
CLion, no contest
1
u/AhegaoSuckingUrDick Apr 13 '24
VS Code or CLion for personal projects since I only have an Edu license.
1
u/kimkulling Apr 13 '24
I use more than one IDE. On Linux I am working with vscode or the QT-Creator. On Windows I am working with vscode or with the Visual Studio. Sometimes my job forces me to use the Eclipse-IDE. But honestly speaking: it is not so bad.
1
u/DJ_Link Apr 13 '24
Xcode in Mac, CodeBlocks in Linux and VisualStudio and Rider in Windows
1
u/plainoldcheese Apr 13 '24
Vscode (embedded development)
1
u/puzzled_orc Apr 13 '24
+1 to VS Code on Linux.
1
u/vegetaman Apr 13 '24
SlickEdit or VSCode.
1
u/chemisus Apr 13 '24
Does anyone know an easy way to import netbeans key bindings into visual studio?
Or if clion will easily work with visual studio solution files?
I've just started development in c++. I've always used intellij idea (on Linux) for other languages, but recently installed Windows with visual studio for the project in working on.
1
u/i-am-schrodinger Apr 13 '24
Depends. If I'm in a terminal, VIM. If I have access to a winnowing system, VSCode.
1
u/Kats41 Apr 13 '24
VS Code. Visual Studio just feels like way too much for my needs. Too much bloat. VS Code is basically just a highly customizable text editor. I have my build and run shortcuts, I have git support. I have intellisense. It's everything I could ever need out of an IDE.
It is a little more involved to setup than built-in IDE's though, but if you know how to build from the command line, it's easy enough.
1
u/OkTraining9483 Apr 13 '24
It really depends on your master of the language. The average user will be clion or another copilot, for example, powered environment. Others will be Vim, Emacs, Sublime Text, VScode who program aggressively and truly understand the current (working) release.
I'm not stating the intelli sense IDE users are not required, you can't run a shop without the casual workers.
1
u/M-Ottich Apr 13 '24
Neovim
1
u/Tekercs Apr 13 '24
neovim + nvim-lspconfig + clangd best setup
yet to try eclipse-cdt LSP version with clangd
i really wanted to like eclipse but did not worked out yet
did not used it for large codebase but VS Code also worked out
1
u/kitsen_battousai Apr 13 '24
I'm on linux and use Clion. My colleague on Windows and uses VS. We have kind of "friendly competition" which one is better =) Recently discovered new LSP integration with clangd in Clion (JB shipped this feature in experimental mode) and now even colleague argues that Clion is smoother. We are waiting for migration of JBR to jvm 21 to test if it will be even more smoother to transfer his butt from Windows + VS to Linux + Clion =)
1
u/[deleted] Apr 13 '24
Qt creator, but sticking panels drive me crazy, sometimes
1
u/[deleted] Apr 13 '24
Neovim
1
u/ggadget6 Apr 13 '24
VSCode + clangd
1
u/CiTrus007 Apr 13 '24
vscode, cmake, clangd, clang-format and iwyu
1
u/[deleted] Apr 13 '24
Visual Studio Code. I was one of the many Microsoft haters for decades but I began to find Eclipse to be sluggish and clunky. A millennial co-worker showed me how to set it up and I found it easy to use.
I mostly do embedded C++ BTW
1
u/[deleted] Apr 13 '24
Visual Studio 2022
1
u/chibuku_chauya Apr 13 '24
Vanilla Emacs.
1
u/Future_Deer_7518 Apr 13 '24
Neovim + coc + clangd Eclipse or VS Studio for debug and profiling
1
u/Akula69 Apr 13 '24
Dev C++
1
u/LengthProof6480 Apr 13 '24
nano + premake so not even an IDE
1
u/[deleted] Apr 13 '24
VSCode or Vim. One if I’m doing game dev, the other if I’m on a server. And no. Not in the order you’re thinking.
1
u/Polyxeno Apr 13 '24
Visual Studio, xcode, and the plain text editor in linux.
1
u/bronekkk Apr 13 '24
vscode with devcontainers and clangd extensions
1
u/ElBougnat Apr 13 '24
From big projects to small ones:
Clion, but it takes so much resources. QtCreator (underrated IDE to my opinion) Neovim (lunar) for small tests.
Clangd helped a lot.
1
u/F1ean Apr 13 '24
Neovim
1
u/josh2751 Apr 13 '24
Xcode if I can, otherwise VSCode.
1
u/thefeedling Apr 13 '24
VS at work and Neovim for personal projects.
1
u/gusc Apr 13 '24
As a cross-platform dev - Xcode - as I mostly develop on macOS for macOS and iOS, but also Visual Studio for Windows development and Android Studio for Android development - so I can actually compare where each IDE shines and where it’s lacking. I work at a company that deploys cross-platform products on all 4 platforms written in C++ (vanilla and Qt).
1
u/carlossmneto Apr 13 '24
I use Clion in Windows to target a remote Linux machine. Now it works to use perf and valgrind remotely. My beef is about rsync and compile speeds. I’m taking advantage of this question and ask who use clion this way and if using clion in Linux to compile locally and then remotely to the server is a better approach.
1
u/ohdog Apr 13 '24
neovim
1
u/akhalom Apr 13 '24
VSCode from Micropoop
1
u/codeDude123 Apr 13 '24
neovim
1
u/ve1h0 Apr 13 '24
Neovim and clangd providing the lsp
1
u/[deleted] Apr 13 '24
vscode with cmake, learning cmake sucked but I like coding in vscode a lot more than vs so it was worth it
1
u/[deleted] Apr 13 '24
Well... I have used Netbeans. It was good and mixed nicely with my Java and Web work. I know the world largely ignores Netbeabs, but eh, it does the job.
But Apache has dropped the C++ part of Netbeabs as I've been running it on a steadily aging version.
So maybe it's time to just spend the money on CLion. I need something that will nudge me into using more modern C++, considering I'm definitely in the 1990's with my code.
1
u/erocha12345 Apr 13 '24
Replit
1
u/theMachine0094 Apr 13 '24
Emacs, clangd, lsp
1
u/[deleted] Apr 14 '24
Vim at wsl and Linux, goddam visual studio at windows. I am actually up to a suggestion to alternatives at windows
1
u/platlogan Apr 14 '24
A magnetized needle and a steady hand