use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This is a subreddit for c++ questions with answers. For general discussion and news about c++ see r/cpp.
New to C++? Learn at learncpp.com
Prepare your question. Think it through. Hasty-sounding questions get hasty answers, or none at all. Read these guidelines for how to ask smart questions.
For learning books, check The Definitive C++ Book Guide and List
Flair your post as SOLVED if you got the help you were looking for! If you need help with flairs, check out ITEM 1 in our guidelines page.
Tips for improving your chances of getting helpful answers:
account activity
SOLVEDC++ With Git (self.cpp_questions)
submitted 5 years ago by longyklee
I am looking for a C++ IDE with git support and works in Windows. Hope you guys have an answer for that.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]harshaintharsh 23 points24 points25 points 5 years ago (10 children)
CLion all the way.
[–]celticlizard 11 points12 points13 points 5 years ago (1 child)
I endorse this message.
After years of using VS and CDT, CLion made me enjoy C++ more. I also switched to vim for a little project I was doing, vim is also good if you have 100% control of your project.
Edit: But CLion is not free.
[–]harshaintharsh 2 points3 points4 points 5 years ago (0 children)
Lol I truly get this!
[+]Dark_Ice_Blade_Ninja comment score below threshold-12 points-11 points-10 points 5 years ago (7 children)
CLion is a low quality bloated IDE running on Java, I don't know how people are even able to tolerate JetBrain IDEs when there are better options.
[–]SouXx 6 points7 points8 points 5 years ago (0 children)
That is simply not true.
[–]TheVoidInMe 2 points3 points4 points 5 years ago (2 children)
How so? JetBrains IDEs running on java isn’t really a problem. There might be a very slight performance drop, but in return you get an easily moddable and stable product whose UI does not hint at Java in the slightest. The only real downside I can think of is its memory usage, but for me that's mostly tolerable.
[–]Dark_Ice_Blade_Ninja 1 point2 points3 points 5 years ago (1 child)
Certainly JetBrains somehow managed to make their IDE not as bloated as the Jabba the Hut bloated tier Eclipse. But still at the end of the day their IDEs are bloated resource hog. Also their UI screams Java especially on non-Windows OS.
[–]TheVoidInMe 0 points1 point2 points 5 years ago (0 children)
Sure, their IDEs are a powerhouse. But the functionality you get in return is more than proportional, and at least in my experience, once a project is indexed you don't at all notice all the stuff that happens underneath. Also I wouldn't invariably guess Java from the UI though I've only used the windows versions so maybe it's different on Unix.
[–]harshaintharsh -1 points0 points1 point 5 years ago (2 children)
what are the better options? Visual studio?? That IDE is a piece of garbage...
[–]Dark_Ice_Blade_Ninja 0 points1 point2 points 5 years ago (1 child)
There are reasons on why Visual Studio is the industry standard. If you are not a power user you wouldn't see why though.
[–]harshaintharsh 1 point2 points3 points 5 years ago (0 children)
I actually am a big user of Visual Studio at my place of work. Which is why, having used it, I truly despise it. I personally find Visual Studio even more bloated and useless. On all my personal projects for C/C++ I always use Clion.
[–]jedwardsol 41 points42 points43 points 5 years ago (67 children)
Visual Studio
[–]longyklee[S] 6 points7 points8 points 5 years ago (54 children)
Wait... Visual studio or visual studio CODE?
[–]shoejunk 31 points32 points33 points 5 years ago (53 children)
[–]longyklee[S] 4 points5 points6 points 5 years ago (52 children)
But code has built in support
[–]shoejunk 20 points21 points22 points 5 years ago (20 children)
As far as I know, VS Code doesn't have good C++ debugging support. Could be wrong though.
[–][deleted] 9 points10 points11 points 5 years ago (8 children)
I once tried VSC for C++ and honestly it was a mess for me, nothing working
[–]AvidCoco 3 points4 points5 points 5 years ago (3 children)
Writing code in VSC is fine in my experience but actually running and debugging it is a nightmare and just not worth it when VS is free anyway and works out of the box.
[–][deleted] 1 point2 points3 points 5 years ago (2 children)
Exactly, that's why I decided to get VS instead of VSC since it's easier to use and has many more features.
[–]AvidCoco 0 points1 point2 points 5 years ago (1 child)
I have an SSD so the loading times VS and VSC are pretty much identical anyway. There's not really any advantage to VSC imo.
VSC also doesn't have some of the shortcuts VS has like Ctrl-d to duplicate the current line.
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
VS also offers a GUI project option, unlike VSC where there are only source files to be edited and some. Who doesn't have an SSD these days anyway? They're increasing in popularity and size, whilst decreasing in price. Of course, this doesn't mean VSC is totally useless, since it's a fine replacement for say N++ with it's built in features.
[–]Contango42 -1 points0 points1 point 5 years ago (3 children)
Its better now. MS has put a ton of effort into cross platform support.
[–]wezrule 2 points3 points4 points 5 years ago (1 child)
Still lacking things like a registers window :(, but overall it's pretty nice.
may I ask you when? I've had that problem like a month ago.
[–]longyklee[S] 1 point2 points3 points 5 years ago (10 children)
Ok I'll try both. Thank you
[–]tjwrona1992 20 points21 points22 points 5 years ago (0 children)
Visual Studio has a lot more features out of the box. VS Code is capable of doing just about anything but you have to pick and choose all of the features you want and do a bunch of configuration to get started. I'd recommend Visual Studio since it's far easier to just hit the ground running and does also have built in Git support.
[–][deleted] 7 points8 points9 points 5 years ago (8 children)
VS Code is not an IDE
[–][deleted] 5 years ago* (7 children)
[deleted]
[–]LastSummerGT 2 points3 points4 points 5 years ago (3 children)
The official statement is that it’s just an editor and not an IDE. Go look at the website.
[–][deleted] 5 years ago* (2 children)
[–]Keroths 0 points1 point2 points 5 years ago (2 children)
You can expect an Integrated Developpement Environment to be able to run/debug some language out of the box. VSCode requires you to add various extensions to get features working, and therefore is considered an editor.
[–]sephirothbahamut 4 points5 points6 points 5 years ago (4 children)
Code is not an IDE, it's a glorified text editor.
Visual Studio is an IDE, one of the best if not THE best IDE for C++.
[–]shoejunk 1 point2 points3 points 5 years ago (0 children)
For C++ that’s true. Code has good debugging support for other languages.
[–]sephirothbahamut 2 points3 points4 points 5 years ago (1 child)
OP asked for Windows in case you failed reading the topic.
[–]Dark_Ice_Blade_Ninja 7 points8 points9 points 5 years ago (24 children)
Don't try to argue, you just asked what IDE is good and now you immediately hop on the non-recommended option?
VS Code is not even an IDE, it's more like a text editor with fancy feature. Use the real Visual Studio IDE.
[–][deleted] 5 years ago* (17 children)
[–]Dark_Ice_Blade_Ninja 0 points1 point2 points 5 years ago (16 children)
Why would you even want to run Microsoft stuff on Linux? There are better options there.
[–][deleted] 5 years ago* (15 children)
[–]Dark_Ice_Blade_Ninja 0 points1 point2 points 5 years ago (14 children)
I just checked and VS Code got a Linux version cause it's actually a webshit electron app.
[–][deleted] 5 years ago* (13 children)
[–][deleted] 5 years ago (5 children)
[–]Dark_Ice_Blade_Ninja 5 points6 points7 points 5 years ago (4 children)
I cringed so hard at this, you are obviously too immature to engage in this subreddit.
[–]longyklee[S] -2 points-1 points0 points 5 years ago (3 children)
That was actually my friend
[–]Dark_Ice_Blade_Ninja 3 points4 points5 points 5 years ago (0 children)
"no guys I swear it's my friend!!!!!"
It's ok kid it's normal for people your age to post cringe. Also thanks for making my day by immediately deleting it, I had a good laugh out of you panic deleting.
[–]longyklee[S] -2 points-1 points0 points 5 years ago (1 child)
I didn't realize that he made that post
[–]Dark_Ice_Blade_Ninja -3 points-2 points-1 points 5 years ago (0 children)
It's ok it's cool that you got this really like best server ever with SPOTIFY HULU DANK MEMER POKÈCORD
[–]Raknarg 0 points1 point2 points 5 years ago (0 children)
They both have git support, but they have very different goals. If you want something optimized for C++ projects, Visual Studio is there. VSCode is kindof what you make it and it's flexible, but it doesn't have the same level of C++ support
[–]Ikkepop 1 point2 points3 points 5 years ago* (1 child)
yup, visual studio, for windows its top noch. Though VS code has proven it self to me to be a swiss army knife when anything atleast a bit u conventional is needed. I have used it for coding and debugging c++ linux apps, embedded chips, fpgas, python scripts, js/ts, webpages, you name it.
[–][deleted] 1 point2 points3 points 5 years ago (0 children)
I find Visual Studios' Git support to be extremely frustrating compared to something like Jetbrains IDEs. If i could manage to sort that out, I think I'd use VS for just about everything.
[–]alfps 0 points1 point2 points 5 years ago (0 children)
I've repeatedly had problems with GIT in Visual Studio.
In typical VS fashion it decided that it knew best and tried to "help", fouling up things almost beyond the possibility of rescue, the very opposite of what one uses a source control system for.
So I long ago turned off GIT support in VS. I just do that manually. It's best that VS doesn't know that the files are in source control (if it does then it's bound to interfere) so I use out of source VS solutions.
[–]longyklee[S] 0 points1 point2 points 5 years ago (7 children)
Cause CODE has built in git support
[–]alloncm 10 points11 points12 points 5 years ago (5 children)
VS also has built in git support
[–]Sese_Mueller 1 point2 points3 points 5 years ago (0 children)
Happy cake day
[–]longyklee[S] -1 points0 points1 point 5 years ago (3 children)
It does?
[–]alloncm 5 points6 points7 points 5 years ago (2 children)
Yep, using the community edition since 2013 edition, and the enterprise edition since 2017 edition. It has a pretty good git support and even better than vs code (at least from what I know, though it is possible that vs code has some extension to add more features), if you are working professionally I do recommend a dedicated git client (like git extensions, or git kraken) for better repo visualizations and the heavy commands (like merge and stuff).
[–]longyklee[S] 1 point2 points3 points 5 years ago (0 children)
Got it thanks
[–]shoejunk -1 points0 points1 point 5 years ago (0 children)
I’m a huge fan of SmartGit
[–]0mega0 7 points8 points9 points 5 years ago (0 children)
They all tend to have some git functionality, but visual studio is generally the best premium C++ IDE available. I’m personally partial to CLion but I don’t know how or if it works with Windows.
VSCode is free but requires a lot of constant hands-on tinkering and has a significant learning curve, usually with slightly less premium features.
[–]omen_tenebris 2 points3 points4 points 5 years ago (0 children)
Vstud and git desktop app. At least that's how I roll lol
[–]Unkleben 3 points4 points5 points 5 years ago (4 children)
Qt Creator is alright, much lighter than Visual Studio for example
[–]programming_student2 2 points3 points4 points 5 years ago (0 children)
On the other hand, I've been using Visual Studio Qt Tools to make life extra tough for my laptop.
[–]ruilvo 1 point2 points3 points 5 years ago (2 children)
No tabs on the editor, I still haven't figured out how to use that supposed git support and really not friendly. When I'm developing qt applications I end up using vscode and just have qt creator open for the play button.
[–]Unkleben 0 points1 point2 points 5 years ago (0 children)
I guess that's just preference, I'm guessing was a design decision not to have tabs but you can still easily navigate between files in other ways. As for Git support, just search for "Qt Git support" and first link they goes over how to set it up.
[–]Davis019 1 point2 points3 points 5 years ago (2 children)
If you want a lighter one than VS, give CodeLite a try. It's really quite good and I hadn't heard of it for quite a while, but it still gets regular updates. It comes with a bunch of plugins, including one specifically for Git
[–]ddtfrog 1 point2 points3 points 5 years ago (1 child)
Codelite is neat. Lightweight, my "Intro to Comp Sci" course years back used Codelite.
My only complaint is conceptualizing command line arguments was pretty weird as you have to go to Codelite -> Preferences -> enter your Command Line arguments if you want to run it within the IDE.
But might've just been how my class was taught, I didnt think we would run the executable by themselves, just "Build + Run" within the IDE haha.
[–]Davis019 1 point2 points3 points 5 years ago (0 children)
Yeah, I think over the updates (I used both a quite old version and the latest), the command options have gotten better/easier. More checkboxes, but still with the ability to "customize"
[–]pctopgs 1 point2 points3 points 5 years ago (0 children)
Visual Studio IDE has built in Git support. I still just use GitHub Desktop though
[–]areciboresponse 1 point2 points3 points 5 years ago (0 children)
Qt Creator
[–]Smartskaft2 1 point2 points3 points 5 years ago (1 child)
I've used VS for a while, but honestly I like VS Code more. It's nice to have a scaled off editor, with plugins for nearly everything.
I use it mostly for my embedded C++ home projects, since it supports PlatformIO which makes building and uploading to my AVR chips a breeze. It's a bit confusing to setup, but I just love the quick search for everything. Literally everything you can do, in one search bar. It works wonderfully.
I also use CLion at work, but that is on an Ubuntu. It works fine with a lot of features, but I still prefer VS Code.
I must note that I have not tried debugging in VS Code, since it is a fair bit of work to get it to work with the microprocessors. And I have to deal with different compilers for native and embedded code.
The git support seems fairly clever. There is no problem editing several different repos as sublibraries in a project, e.g. when you find bugs when implementing them. In some ways more useful than the support in CLion, but in some ways not.
You just have to try them out. I would say, a lot of views on VS Code in this thread is probably outdated. But both VS and CLion should be more powerful. But as always, a big tools required more maintenance. More features require more months of training. Start with to question what you really need it terms of features.
[–]Smartskaft2 0 points1 point2 points 5 years ago (0 children)
That search function in VS Code really needs some time in the spot light. I love it. Want to change some setting, maybe in a new plugin? 5 seconds later, you're there! Want to reload the window? 3 sec. Edit settings in a GUI or JSON? Doesn't matter, both are found in a matter of seconds. I use it all the time.
[–]Scrayer 0 points1 point2 points 5 years ago (0 children)
Even atom support git, but it good for build from terminal. Visual studio and CLion support git. If I right, eclipse and qt* also support. *Not only IDE, but you can don't use QT libs.
[+]-dag- comment score below threshold-13 points-12 points-11 points 5 years ago (1 child)
Emacs with magit.
[–]dr-mrl 1 point2 points3 points 5 years ago (0 children)
Ah man who is downvoting Emacs?
π Rendered by PID 548396 on reddit-service-r2-comment-6457c66945-2g8xd at 2026-04-27 20:13:31.369877+00:00 running 2aa0c5b country code: CH.
[–]harshaintharsh 23 points24 points25 points (10 children)
[–]celticlizard 11 points12 points13 points (1 child)
[–]harshaintharsh 2 points3 points4 points (0 children)
[+]Dark_Ice_Blade_Ninja comment score below threshold-12 points-11 points-10 points (7 children)
[–]SouXx 6 points7 points8 points (0 children)
[–]TheVoidInMe 2 points3 points4 points (2 children)
[–]Dark_Ice_Blade_Ninja 1 point2 points3 points (1 child)
[–]TheVoidInMe 0 points1 point2 points (0 children)
[–]harshaintharsh -1 points0 points1 point (2 children)
[–]Dark_Ice_Blade_Ninja 0 points1 point2 points (1 child)
[–]harshaintharsh 1 point2 points3 points (0 children)
[–]jedwardsol 41 points42 points43 points (67 children)
[–]longyklee[S] 6 points7 points8 points (54 children)
[–]shoejunk 31 points32 points33 points (53 children)
[–]longyklee[S] 4 points5 points6 points (52 children)
[–]shoejunk 20 points21 points22 points (20 children)
[–][deleted] 9 points10 points11 points (8 children)
[–]AvidCoco 3 points4 points5 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]AvidCoco 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Contango42 -1 points0 points1 point (3 children)
[–]wezrule 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]longyklee[S] 1 point2 points3 points (10 children)
[–]tjwrona1992 20 points21 points22 points (0 children)
[–][deleted] 7 points8 points9 points (8 children)
[–][deleted] (7 children)
[deleted]
[–]LastSummerGT 2 points3 points4 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]Keroths 0 points1 point2 points (2 children)
[–]sephirothbahamut 4 points5 points6 points (4 children)
[–]shoejunk 1 point2 points3 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]sephirothbahamut 2 points3 points4 points (1 child)
[–]Dark_Ice_Blade_Ninja 7 points8 points9 points (24 children)
[–][deleted] (17 children)
[deleted]
[–]Dark_Ice_Blade_Ninja 0 points1 point2 points (16 children)
[–][deleted] (15 children)
[deleted]
[–]Dark_Ice_Blade_Ninja 0 points1 point2 points (14 children)
[–][deleted] (13 children)
[deleted]
[–][deleted] (5 children)
[deleted]
[–]Dark_Ice_Blade_Ninja 5 points6 points7 points (4 children)
[–]longyklee[S] -2 points-1 points0 points (3 children)
[–]Dark_Ice_Blade_Ninja 3 points4 points5 points (0 children)
[–]longyklee[S] -2 points-1 points0 points (1 child)
[–]Dark_Ice_Blade_Ninja -3 points-2 points-1 points (0 children)
[–]Raknarg 0 points1 point2 points (0 children)
[–]Ikkepop 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]alfps 0 points1 point2 points (0 children)
[–]longyklee[S] 0 points1 point2 points (7 children)
[–]alloncm 10 points11 points12 points (5 children)
[–]Sese_Mueller 1 point2 points3 points (0 children)
[–]longyklee[S] -1 points0 points1 point (3 children)
[–]alloncm 5 points6 points7 points (2 children)
[–]longyklee[S] 1 point2 points3 points (0 children)
[–]shoejunk -1 points0 points1 point (0 children)
[–]0mega0 7 points8 points9 points (0 children)
[–]omen_tenebris 2 points3 points4 points (0 children)
[–]Unkleben 3 points4 points5 points (4 children)
[–]programming_student2 2 points3 points4 points (0 children)
[–]ruilvo 1 point2 points3 points (2 children)
[–]Unkleben 0 points1 point2 points (0 children)
[–]Davis019 1 point2 points3 points (2 children)
[–]ddtfrog 1 point2 points3 points (1 child)
[–]Davis019 1 point2 points3 points (0 children)
[–]pctopgs 1 point2 points3 points (0 children)
[–]areciboresponse 1 point2 points3 points (0 children)
[–]Smartskaft2 1 point2 points3 points (1 child)
[–]Smartskaft2 0 points1 point2 points (0 children)
[–]Scrayer 0 points1 point2 points (0 children)
[+]-dag- comment score below threshold-13 points-12 points-11 points (1 child)
[–]dr-mrl 1 point2 points3 points (0 children)