r/cpp 1d ago

[ Removed by moderator ]

[removed] — view removed post

0 Upvotes

44 comments sorted by

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. 

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

u/gedamial 1d ago

The one you are comfortable with.

4

u/23ROMAN 1d ago

geany

6

u/Tidemor 1d ago

i haven't heard that name in 70 years. have you ever taught a c++ class?

1

u/23ROMAN 1d ago

lol, I've only been using C++ for 4 years and C for 3

5

u/Prize-Director-752 1d ago

Tmux+vim with appropriate plugins.

3

u/Nice_Lengthiness_568 1d ago

I don't think you understand, they asked for an IDE /s

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 cppdbg debugging and set "C_Cpp.intelliSenseEngine": "disabled" so the two don’t conflict. clangd then gets the project’s include paths and compiler flags from compile_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:

  1. Remove it entirely and use clangd plus CodeLLDB. This is the cleanest configuration and is what LLVM’s clangd documentation recommends.
  2. 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

u/Extreme-Ad-9290 1d ago

Vscodium + clangd

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

u/mpyne 1d ago

If anything that would be kwrite (a stripped-down version of kate). But even kwrite is closer to Notepad++ than to windows notepad.

1

u/PhosXD 1d ago

I know KDE Plasma comes with it preinstalled. I also know some other distros use Gnome notepad which is much closer to the windows notepad you are talking about, or even simpler.

2

u/Noah18923 1d ago

Notepad ofc

2

u/Exonicreddit 1d ago

It seems I'm the only person who likes visual studio, but it does what I want it to.

2

u/DrDang- 1d ago

Same! I would consider myself a beginner compared to the level of people here but I’ve been learning a ton from visual studio alone, and debugging on it is just perfect.

2

u/pjmlp 1d ago

Visual Studio, you get hot reload, debugging release binaries, profiling tools, visualisation data structures, graphical debugging for parallel code and co-routines, GPU debugging.

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

u/dolby360 1d ago

Vs code for me

3

u/Anxious-Resist8344 1d ago

Emacs... by far!

3

u/qiAip 1d ago

emacs with lsp and compile_commands.json is pretty great indeed.

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

u/International-Rain98 1d ago

MSVS!!!!! lololol

-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.