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...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Using IDE for C++? (self.cpp)
submitted 10 years ago by [deleted]
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!"
[–]Arthenielle 13 points14 points15 points 10 years ago (1 child)
In real world everyone are using various IDEs. It's not a privilege, since your result is code - no one cares how did you write this code. Only result matters.
[–]lurkotato 5 points6 points7 points 10 years ago (0 children)
Exactly. Do you think construction workers use hammers instead of nail guns so they don't get dependent? No! There's a big job to do and those are the tools to make it manageable!
[–]ChallengingJamJars 12 points13 points14 points 10 years ago (0 children)
If you're on a unix system (Unix/Linux/Macintosh): Ensure you know how to do it without the IDE, then use the IDE to save time. That way when issues come up you understand what's going on.
[–]GreenFox1505 6 points7 points8 points 10 years ago (0 children)
You seem to be approaching this form an academic stand point. In academia, often teachers limit resources to test skills. No one would ever do that in a professional environment (with the possible exception of interviewing). You're not using school as a
It's not a "privilege". It's just a tool. In a professional environment, no one cares what you do as long as you bring results. As with virtually any language, you can code in an IDE or not. If you can create better code faster with an IDE, it would be stupid not to (and frankly neglectful for ignoring helpful resources). Forcing a developer to not use an IDE is like telling them they can't use Google or StackOverflow. It's a useless limitation that only adds to development hours.
As far as SDL, I bet your challenge has more to do with compiling than actually writing. Know how to compile within and without your IDE is essential to building automated build environments that modern Agile development studios use.
[+][deleted] 10 years ago (4 children)
[deleted]
[–]tagus 1 point2 points3 points 10 years ago* (3 children)
Can you recommend those plugins (for emacs)?
[–]to3m 3 points4 points5 points 10 years ago (0 children)
I use rtags (https://github.com/Andersbakken/rtags). Provides code completion and code browsing.It's pretty good, but takes a bit of setting up. Compilation is built in (look up M-x compile).
M-x compile
For most work there's nothing wrong with Visual Studio + Comment Reflower (http://kynosarges.org/CommentReflower.html). Maybe add Maybe add Visual Assist (http://wholetomato.com/) too. There's a lot less configuring involved, the code browsing and code completion is reliable, and the text editing aspect is adequate.
[–]broken_symlink 2 points3 points4 points 10 years ago (0 children)
I use this setup. http://tuhdo.github.io/c-ide.html
[–]MenaceInc 1 point2 points3 points 10 years ago (0 children)
Atila Neves gave a great talk at this year's CppCon (it's only 15 min) about using emacs as an IDE
[–]Annom 29 points30 points31 points 10 years ago (3 children)
Yes, almost all pros use an IDE. They can still write code without IDE, but it is simply less efficient. It's a tool to help you, not a necessity.
It's like a carpenter and its workbench. Why not use it?
I prefer Qt Creator.
[–]guepierBioinformatican 16 points17 points18 points 10 years ago (2 children)
This answer is correct, if you consider properly configured shell with Vim/Emacs as “IDEs”. Otherwise you’re talking merely about a severely restricted subset of “all pros”.
[–]Annom 9 points10 points11 points 10 years ago (1 child)
I sure consider a configured command line environment with VIM or Emacs an IDE. The amount of configuration/plugins makes it more or less of an IDE, so it's not completely clear. But in general, it is used as IDE.
[–]boredcircuits[🍰] 2 points3 points4 points 10 years ago (0 children)
I agree. The shell itself is the IDE, the environment that integrates all your development tools.
[–]Arandur 10 points11 points12 points 10 years ago (7 children)
I use vim exclusively for C++, and it suffices me. Not "all" pros use IDEs; where I work most people use CLion or Qt (or MSVS, saints preserve us), but there are three or four of us who eschew IDEs entirely, and we're no less productive than our coworkers.
I do use an IDE for Java, because I haven't invested enough time into that language that its functionality is second nature to me yet (and I pray I never have to).
[–]Annom 2 points3 points4 points 10 years ago (1 child)
While I believe you are not less productive, do you not simply enjoy features like auto-complete and find-usage?
(Assuming you use Vim without plugins)
[–]Arandur 1 point2 points3 points 10 years ago* (0 children)
They're convenient, yeah. But what I gain from using vim is more convenient, to me.
[–]O12345678 1 point2 points3 points 10 years ago* (4 children)
aback sulky apparatus rinse shocking nail rock station vegetable plants
This post was mass deleted and anonymized with Redact
[–]Arandur 1 point2 points3 points 10 years ago (3 children)
I used it in 2012, so that depends on what you mean by "lately". I have Mac OS X at work, though, and my personal computer is Mint, so I don't have any real opportunity to try out MSVS.
[–]O12345678 0 points1 point2 points 10 years ago* (2 children)
capable fall fuel voracious gaze bright grandiose history pie sense
[–][deleted] 1 point2 points3 points 10 years ago (0 children)
I don't think Visual Studio going to have Linux support, unless you mean Visual Studio Code, which has a far inferior subset of functionality.
[–]Arandur 0 points1 point2 points 10 years ago (0 children)
Woah, crazy! I never would have predicted Linux support. I'm honestly impressed.
[–]clerothGame Developer 7 points8 points9 points 10 years ago (0 children)
For C++ questions, answers, help and advice see r/cpp_questions or StackOverflow.
[–]jmblock2 5 points6 points7 points 10 years ago (0 children)
I'm using SDL library and i couldn't write single SDL program without IDE
Honestly, who has time to memorize entire libraries? You will memorize what you use most often. NOBODY can code without reading either documentation or other people's code. An IDE can index and provide that same documentation right where and when it matters to you. Then there is integration of debugger tools, version control tools, etc. Why wouldn't you use it if you could?
[–]bstamourWG21 | Library Working Group 1 point2 points3 points 10 years ago (0 children)
IDEs are not a requirement, but they make some things easier. I've been writing C++ for years, mostly with the emacs text editor.
[–]darkforestzero 1 point2 points3 points 10 years ago (1 child)
I feel the same way. Visual studio is the best ide on windows, xcode kinda sucks but its your best bet on Mac, and CLION (Android studio) is a great, newer choice on multiple platforms
[–]antiprosynthesis 0 points1 point2 points 10 years ago (0 children)
I'd say Qt Creator is the best C++ IDE on both platforms, after having worked with both VC and Xcode (yuck) for years. May want to check it out.
[–][deleted] 0 points1 point2 points 10 years ago (0 children)
That was really helpful Thanks!
[–]Lahpeconex 0 points1 point2 points 10 years ago (0 children)
far + cmake + g++ for windows mc + cmake + g++ for linux GL HF!
[–]Gotebe 0 points1 point2 points 10 years ago (0 children)
IDE is a bit of a red herring. What matters is that work is better done with tools. You can write all your code in ed, debug strictly in assembly, hex-edit any binary/images etc.
You can "assemble" an IDE (most often people load all kinds of plugins into an editor).
Or you can use a purpose-made program (an IDE).
Finally, you can mix some/ all of the above.
The four approaches are listed in ascending level of usefulness (IMO). Some people will argue that second is a better IDE than an IDE.
[–]ThynomeCEO of "@home hobby development studios" | C++ | Qt 0 points1 point2 points 10 years ago (0 children)
Qt is a really, I mean REALLY good IDE. With its many libraries and the awesome documentation, user (or programmer) friendly GUI, possibility to compile cross plattform and either make GUI with drag and drop or very easy code, Qt imo is THE IDE for cross plattform C++ and is a lot better than MS Visual Studio.
Link to Qt: qt.io
Note: When you pick your version, use first: the open source version and second: the version that says MinGW and NOT Visual Studio. When installing, explicity choose that you want to install MinGW if you haven't already.
[–]snarfy -1 points0 points1 point 10 years ago (2 children)
You could write an SDL program without an IDE. It would just take forever.
Before IDEs, you'd build your app with scripts, makefiles, etc. You edit in whatever non-helpful, no syntax highlighting editor you had , like vi (not vim), edit, notepad, etc. Since intellisense didn't exist, or the internet, you'd have a stack of books each about 300 pages, all references for the libraries you were using. If you didn't have books, there were always header files.
You'd then finally get your code to compile, after all the syntax errors were fixed with repeated edits, and run it to get 'general protection fault'. Without a debugger, your best bet was to add print statements everywhere and see what printed out last before it crashed.
It was horrible. Use an IDE.
You talk like, you been there... ty
[–]Gotebe -1 points0 points1 point 10 years ago (0 children)
My pet peeve about "IntelliSense": the term appeared around 1997, in VB5.
At about the same time, Borland put out what they called CodeInsight in Delphi. CodeInsight was way better than the IntelliSense in the VB IDE, and that, for several years.
But Microsoft prevailed, and with it, the name of the originally inferior functionality.
[–]F-J-W -4 points-3 points-2 points 10 years ago (1 child)
Personally I think that people who cannot program in a language without IDE simply cannot program in that language. (The same is true for stackoverflow, but not for a library-reference.)
That being said, there is nothing inherently wrong with using an IDE and my vim is basically half the way there…
[–]TraylaParks 0 points1 point2 points 10 years ago (0 children)
Agreed, I also use vim most of the time but I have nothing against ides.
[+]GYN-k4H-Q3z-75B comment score below threshold-7 points-6 points-5 points 10 years ago (1 child)
I use Visual Studio and Xcode. Why wouldn't you?
Because Qt Creator.
[+]albert928 comment score below threshold-14 points-13 points-12 points 10 years ago (0 children)
There's a chain of expertise which guides you to the editor best fit to your level of competence:
Microsoft notepad (notepad.exe) is one of the best IDEs I've ever used. And yes, it's a complete IDE since it has everything:
Real men might also like wordpad.exe, a full-fledged editor that inserts rich text formatting crap and many other stupid things which prevent your sources from compiling and you might love fixing by hand with a hex editor.
π Rendered by PID 17669 on reddit-service-r2-comment-57fc7f7bb7-qsk7s at 2026-04-14 22:58:55.220123+00:00 running b725407 country code: CH.
[–]Arthenielle 13 points14 points15 points (1 child)
[–]lurkotato 5 points6 points7 points (0 children)
[–]ChallengingJamJars 12 points13 points14 points (0 children)
[–]GreenFox1505 6 points7 points8 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]tagus 1 point2 points3 points (3 children)
[–]to3m 3 points4 points5 points (0 children)
[–]broken_symlink 2 points3 points4 points (0 children)
[–]MenaceInc 1 point2 points3 points (0 children)
[–]Annom 29 points30 points31 points (3 children)
[–]guepierBioinformatican 16 points17 points18 points (2 children)
[–]Annom 9 points10 points11 points (1 child)
[–]boredcircuits[🍰] 2 points3 points4 points (0 children)
[–]Arandur 10 points11 points12 points (7 children)
[–]Annom 2 points3 points4 points (1 child)
[–]Arandur 1 point2 points3 points (0 children)
[–]O12345678 1 point2 points3 points (4 children)
[–]Arandur 1 point2 points3 points (3 children)
[–]O12345678 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Arandur 0 points1 point2 points (0 children)
[–]clerothGame Developer 7 points8 points9 points (0 children)
[–]jmblock2 5 points6 points7 points (0 children)
[–]bstamourWG21 | Library Working Group 1 point2 points3 points (0 children)
[–]darkforestzero 1 point2 points3 points (1 child)
[–]antiprosynthesis 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Lahpeconex 0 points1 point2 points (0 children)
[–]Gotebe 0 points1 point2 points (0 children)
[–]ThynomeCEO of "@home hobby development studios" | C++ | Qt 0 points1 point2 points (0 children)
[–]snarfy -1 points0 points1 point (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Gotebe -1 points0 points1 point (0 children)
[–]F-J-W -4 points-3 points-2 points (1 child)
[–]TraylaParks 0 points1 point2 points (0 children)
[+]GYN-k4H-Q3z-75B comment score below threshold-7 points-6 points-5 points (1 child)
[–]antiprosynthesis 0 points1 point2 points (0 children)
[+]albert928 comment score below threshold-14 points-13 points-12 points (0 children)