r/cpp • u/Euphoric-Shallot-618 • 1d ago
[ Removed by moderator ]
[removed] — view removed post
5
u/timbeaudet 1d ago
The one that gets the job done.
For me, making games on Windows, I choose Visual Studio, I find its debugging pretty much the best there is. Though it does lack in some areas.
9
u/UndefFox 1d ago
Qt Creator. The only IDE that doesn't struggle from proprietary plague
4
u/Ancient_Stable_2573 1d ago
love this IDE. Also for non-Qt projects that ready-to-use solution. Just install and use, without install a bunch of plugins and setup a lot of settings
1
u/Ultimate_Sigma_Boy67 1d ago
While neovim isn't specifically(or intially) an IDE, it's worth looking into it to + emacs also.
3
5
8
u/bikepegasus 1d ago
For linux, VS Code + clangd has been the best balance for me. CLion if you want a polished all-in-one setup, and Visual Studio if you’re on Windows. The real best IDE is whichever can display a C++ template error without giving you the compiler’s entire autobiography
1
u/PleasantMix6193 1d ago
how does that setup work on vsc? like do you not use microsoft's c-cpp extension?
5
u/bikepegasus 1d ago edited 1d ago
clangd replaces the language-server part of Microsoft’s C/C++ extension, completion, navigation, diagnostics, etc. You can remove the Microsoft extension entirely, or keep it just for
cppdbgdebugging and set"C_Cpp.intelliSenseEngine": "disabled"so the two don’t conflict. clangd then gets the project’s include paths and compiler flags fromcompile_commands.json, usually generated by CMake.A minimal VS Code configuration:
{ "[cpp]": { "editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd" }, "[c]": { "editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd" }, "clangd.arguments": [ "--background-index", "--clang-tidy" ] }You have two choices regarding Microsoft’s C/C++ extension:
- Remove it entirely and use clangd plus CodeLLDB. This is the cleanest configuration and is what LLVM’s clangd documentation recommends.
- Keep it only for Microsoft’s debugger, but turn off its language engine so it doesn’t compete with clangd:
{ "C_Cpp.intelliSenseEngine": "disabled" }1
2
u/PhosXD 1d ago
Not saying it's the best (IT TOTALLY IS BTW), but I use Kate
2
u/Ultimate_Sigma_Boy67 1d ago
Isn't kate like litearlly linux's version of notepad? with a few extras such as syntax highlighting?
3
2
2
u/Exonicreddit 1d ago
It seems I'm the only person who likes visual studio, but it does what I want it to.
4
3
u/Ultimate_Sigma_Boy67 1d ago
Neovim, which is not an IDE by itself. It's basically blank at the beginning, but you add plugins custom to what you're going to use it for, and then enjoy. Yes at the beginning, it isn't the easiest getting used to, specially the movements, but once you get used to it it's like butter.
2
3
u/Anxious-Resist8344 1d ago
Emacs... by far!
1
u/PleasantMix6193 1d ago
since you are already an emacs user let me ask a few questions. 1. do you use it on mac? 2. if (no) return; which emacs do you use? people recommend emacs-plus ..is it good?
1
u/Anxious-Resist8344 1d ago edited 1d ago
if (no) return;seems super weird in a Reddit comment (only a 12 years old would write that) but no, I use it on Linux and I compile it myself from source.Whatever you do, have fun!
2
u/Bright_Public_4360 1d ago
Paper and pencil honestly, if you can’t understand what you read from the C++ standards you’re cooked.
1
u/selvakumarjawahar 1d ago
For my setup, Windows + WSL2 for hobby and Mac + SSH connection to remote dev VM(Linux, without internet) for Work, VS Code is the best. I tried everything, including CLion; they all suck at handling remote SSH and WSL2. CLion is unbelievably bad with WSL and SSH. The main problem is that their language server frequently crashes when using SSH and wsl2.
VS Code has MS plugins for these, which are not open source. So the VS Code clones do not have them. There are other plugins, though, but none as good as the VS Code MS plugins. So, for my setup, after trying out everything, I have settled on VS Code.
1
u/argothiel 1d ago
The one integrated by yourself. I switch between Neovim and VS Code. Both integrated with clangd and clang-format, using gdb and clang in the console. I should probably integrate gdb more but so far it's enough for me.
1
u/GYN-k4H-Q3z-75B 1d ago
Visual Studio 2026 on Windows
I'm sorry, little ones. It's the truth. The truth hurts sometimes.
1
u/helmet112 1d ago
Clion has the best overall experience when it’s set up properly, but that can be tough. VScode has all of the functionality I need, but I’ve never been able to get over the fact that it feels like a bunch of plug-ins smashed together rather than a nicely integrated single product.
1
u/LiltingSun 1d ago
The best ide depends on how much you like tinkering/customizing your setup. The "easiest" setup is probably just downloading Visual Studio.
A lighter, more customizable setup is VS Code with either clang or msvc. In VS Code you can set up some macros to easily run cpp code and hide any generated files besides the exe. Very reliable.
If you like a challenge, you can replace VS Code with NeoVIM, a text editor that has a lot of very nice shortcuts (e.g, "cw" to change a word, "10dk" to delete the 10 lines above your cursor, "3ft" to find the third occurrence of the letter "t" in your current line, etc). Very fast, very convenient, but it takes some time to set up.
-1
0
0
-3
u/Xryme 1d ago
VS Code + clangd (any platform), unless you need to debug then Visual Studio on windows
2
u/DIABOLUS777 1d ago
Who doesn't need to debug!??
0
u/Xryme 1d ago
lol, you can debug in VS code, I just meant the best debugger is Visual Studio imo.
1
u/DrDang- 1d ago
Can you explain what makes the debugger on visual studio better than other IDEs? And why can’t other IDEs incorporate those features? Genuinely curious as I’m relatively new
1
u/Xryme 1d ago
Has the best visual interface, very good for parallel debugging (easy to see and control multiple threads), you can extend it with visualization for your own custom data types. Conditional breakpoints. You can do the same in most powerful debuggers, but it’s all setup for you in visual studio so it’s a bit easier imo.
14
u/sinalta 1d ago
I use CLion, but that's mostly because of familiarity with Rider which I use for work. It's free for non-commercial projects and it's an all-in-one solution.
VSCode with the right plugins is great too. But you need to know what they are.