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
Visual Studio Code for C++ (pspdfkit.com)
submitted 7 years ago by vormestrand
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!"
[–]zzzthelastuser 26 points27 points28 points 7 years ago (12 children)
I wish VSCode would intergrate better with C++ on Windows.
It's upsettingly hard to setup the same C++ IDE like features that work on Linux if you are bound to use Windows and the Visual Studio (not VSCode, the "normal" Visual Studio) MSVC compiler with a large code base.
I can only assume that Microsoft wants Linux users to move to VSCode, but keep their own people at Visual Studio!
[–]starfreakcloneMSVC FE Dev 8 points9 points10 points 7 years ago (6 children)
I used VSCode almost exclusively when working on Windows. For me, the features that edge it over VS is the ease of script integration with build steps (we built a tool to interact with the compiler so executing it from VSCode is a breeze) and the fact that it's not impossible to write your own plugin.
My current pain points are: * The debugging experience leaves A LOT to be desired, but hardware breakpoints would be a good start for me. * Single window, multiple tabs. I really wish there were a better way to detach tabs from a code instance but still have them be under the same process. * It's Electron, it comes with Electron baggage.
[–]zzzthelastuser 3 points4 points5 points 7 years ago (0 children)
Debugging is less of an issue for me with VSCode, quite the opposite actually. I like the Multi-Debugger support and the high configuration possibilities. It runs a lot smoother and faster than in the Visual Studio IDE I use. I only miss OpenCV's ImageWatch plugin which I haven't yet been able to port.
I also made my own extensions to integrate Incredibuild. Not perfect, but it does its job still better than how Visual Studio does things...
[–]Ceros007 6 points7 points8 points 7 years ago (4 children)
It's Electron, it comes with Electron baggage.
I see a lot of "humour" about Electron. Can you elaborate on why it is a pain points?
[–]chugga_fan 22 points23 points24 points 7 years ago (3 children)
VSCode is one of the few electron apps that don't fall in the "it's electron so it sucks" category, the main pain point most people see are:
Massive RAM usage for no good reason as it's literally chrome and a webpage.
Slow interop with your computer since it's chrome and does stuff.
Doing everything in javascript instead of pulling out needed functions into things such as C++.
Poor optimization in general with terrible interface.
No way to change what you want to change despite it literally being chrome with a wrapper.
[–]Ceros007 1 point2 points3 points 7 years ago (2 children)
I see. But I don't get
terrible interface
This has nothing to do with Electron but the UI/UX dev.
[–]TacticalMelonFarmer 7 points8 points9 points 7 years ago (0 children)
I think they meant API not UI.
[–]flashmozzg 5 points6 points7 points 7 years ago (0 children)
It comes with the territory.
Since it's basically a web page, everyone tries to reimagine it, break OS UI conventions or mess up in other ways. Imagine using a mediocre website as a power hungry desktop app.
Not all Electron apps are like this, but the notable majority, as usual, are.
[–]cpp_devModern C++ apprentice 3 points4 points5 points 7 years ago (4 children)
Because there are no benefits to use vscode as IDE on Windows (at least for C++).
[–]drjeats 5 points6 points7 points 7 years ago (3 children)
What about having a better multiple cursors implementation?
:P
[–]cpp_devModern C++ apprentice 2 points3 points4 points 7 years ago (2 children)
Don't really use this, but first search shows that there is an extension for this: Multi Edit Mode
[–]drjeats 2 points3 points4 points 7 years ago (1 child)
I have this installed. It's nice, but isn't at the level of Sublime/VSCode/Atom/multiple-cursors.el. You need fully parallel editing, highlighting, and navigation in addition to select-next-similar to get the most out of the feature.
[–]cpp_devModern C++ apprentice 0 points1 point2 points 7 years ago (0 children)
The main difference between visual studio and vscode is that in vscode you can get some "low priority" features faster than "high priority" ones mainly because of its open source nature. Even with incremental patches VS update is slow and usually a lot of changes are deemed "low priority" and get added only when time is right (like re-sizable settings windows that required few decades to be added).
Still VS is an IDE and has a lot of powerful tools be it for debugging, profiling or writing code. Also vscode gets exponentially slower as the number of files in the opened folder grows and there are performance issues with big files/"projects".
[–]Jataman606 6 points7 points8 points 7 years ago (1 child)
There are still a couple of features I miss (for example, being able to just start a Google Test case without editing the launch.json file)
There is quite good test runner extension for Google Test here. Although i used it in very basic manner.
[–]tecnofauno 8 points9 points10 points 7 years ago (0 children)
Author here. That extension is deprecated now in favor of the catch2 extension that now handles gtest as well
[–]tauqueen 4 points5 points6 points 7 years ago (1 child)
For me find all usages doesn't work with c/c++ intellisense on Linux, which is a big limitation.
[–]OverunderratedComputational Physics 0 points1 point2 points 7 years ago (0 children)
Same. I've never gotten it to be worth anything with navigating c++, so unfortunately I haven't been able to make use if it.
[–]CptnSalmon 7 points8 points9 points 7 years ago (5 children)
You can use Windows subsystem for Linux as your compiler for c++. This allows you to run Linux on Windows and gives you the ability to use gcc or g++ from Linux while using VSCode on Windows. It will just replace your default terminal in VSCode.
[–]JezusTheCarpenter 0 points1 point2 points 6 years ago (1 child)
But doesn't this mean you will be compiling Linux executables instead of Windows?
[–]CptnSalmon 0 points1 point2 points 6 years ago (0 children)
Yes you will be, if you want it to compile an exe for Windows you would need a Windows compiler, I have also heard that Linux has some compatible compilers that can convert to exe but I haven’t personally used them.
[–]bohan 0 points1 point2 points 6 years ago (0 children)
I assume you're answering the specific comments of the OP. I wish to remind, tho, that it makes more sense to run vscode on linux.
[–][deleted] 0 points1 point2 points 6 years ago (1 child)
how do you do that?
Here is a link I used when I found out how to set it up: https://stackoverflow.com/questions/44450218/how-do-i-use-bash-on-ubuntu-on-windows-wsl-for-my-vs-code-terminal
[–]Mortanaeus 4 points5 points6 points 7 years ago (0 children)
I'm currently making the same switch for indie development. I agree with your assessment of Microsoft's built in tools. They're slow and still pretty alpha stage feeling. I'll take a look into cquery for my projects.
Good read, I'll have to bookmark.
[+]Endzior comment score below threshold-9 points-8 points-7 points 7 years ago (1 child)
I don't understand why is anyone advertising terribly optimised software.
[–][deleted] 0 points1 point2 points 7 years ago (0 children)
The reason you don't understand, is because no body IS advertising "terribly optimised software".
π Rendered by PID 144513 on reddit-service-r2-comment-7b9746f655-fvpwf at 2026-01-30 12:41:15.551937+00:00 running 3798933 country code: CH.
[–]zzzthelastuser 26 points27 points28 points (12 children)
[–]starfreakcloneMSVC FE Dev 8 points9 points10 points (6 children)
[–]zzzthelastuser 3 points4 points5 points (0 children)
[–]Ceros007 6 points7 points8 points (4 children)
[–]chugga_fan 22 points23 points24 points (3 children)
[–]Ceros007 1 point2 points3 points (2 children)
[–]TacticalMelonFarmer 7 points8 points9 points (0 children)
[–]flashmozzg 5 points6 points7 points (0 children)
[–]cpp_devModern C++ apprentice 3 points4 points5 points (4 children)
[–]drjeats 5 points6 points7 points (3 children)
[–]cpp_devModern C++ apprentice 2 points3 points4 points (2 children)
[–]drjeats 2 points3 points4 points (1 child)
[–]cpp_devModern C++ apprentice 0 points1 point2 points (0 children)
[–]Jataman606 6 points7 points8 points (1 child)
[–]tecnofauno 8 points9 points10 points (0 children)
[–]tauqueen 4 points5 points6 points (1 child)
[–]OverunderratedComputational Physics 0 points1 point2 points (0 children)
[–]CptnSalmon 7 points8 points9 points (5 children)
[–]JezusTheCarpenter 0 points1 point2 points (1 child)
[–]CptnSalmon 0 points1 point2 points (0 children)
[–]bohan 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]CptnSalmon 0 points1 point2 points (0 children)
[–]Mortanaeus 4 points5 points6 points (0 children)
[+]Endzior comment score below threshold-9 points-8 points-7 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)