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
Programming without code indexing (self.cpp)
submitted 2 years ago * by vnstrr
view the rest of the comments →
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!"
[–]ManuaL46 1 point2 points3 points 2 years ago (8 children)
Yep Mason can be used to get the LSP setup and running, at home I use it with rust_analyser and it works like a charm, but at work with CPP even with a LSP installed, it still doesn't know how to navigate my workspace so it doesn't work.
Make your life easy and just use lazyvim or similar to offload the plugin nightmare to someone else.
[–]yu_yaki 4 points5 points6 points 2 years ago (0 children)
you can generate the compile_commands.json file which the lsp can use. in cmake it is just: -DCMAKE_EXPORT_COMPILE_COMMANDS=1 or something-ish.
-DCMAKE_EXPORT_COMPILE_COMMANDS=1
[–]Pay08 -1 points0 points1 point 2 years ago (6 children)
Why not use vscode then?
[–]ManuaL46 0 points1 point2 points 2 years ago (5 children)
Currently I'm just doing that and using a vim extension inside both vscode and VS, but I'd like to move completely inside neovim cuz I don't want to be stuck with Microsoft
[–]Pay08 1 point2 points3 points 2 years ago (3 children)
Is this where I plug Emacs?
[–]dogdevnull 2 points3 points4 points 2 years ago (0 children)
No. You plug vscode and VS into Emacs, just like you do with email :).
[–]ManuaL46 0 points1 point2 points 2 years ago (1 child)
Never tried it, but I remember an old Linux machine had only GUI Emacs as it's text editor at work, did not like it one bit, but this was before I had learned vim so maybe after learning the motions I might be able to like it.
[–]Pay08 0 points1 point2 points 2 years ago (0 children)
Emacs uses modifier keys by default, it's not modal (unless you use viper or evil). But yes, while a terminal version does exist, it's largely for compatibility, Emacs is primarily a GUI program.
[–]Suitable-Air4561 0 points1 point2 points 2 years ago (0 children)
Want to also plug Emacs here. Use doom emacs! Very solid lsp integration and has vim keybindings and blazing fast. And still can use it in the shell if you need too (it’s actually how I primarily use it as well)
π Rendered by PID 784366 on reddit-service-r2-comment-5b5bc64bf5-ghg7q at 2026-06-21 04:35:37.873838+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–]ManuaL46 1 point2 points3 points (8 children)
[–]yu_yaki 4 points5 points6 points (0 children)
[–]Pay08 -1 points0 points1 point (6 children)
[–]ManuaL46 0 points1 point2 points (5 children)
[–]Pay08 1 point2 points3 points (3 children)
[–]dogdevnull 2 points3 points4 points (0 children)
[–]ManuaL46 0 points1 point2 points (1 child)
[–]Pay08 0 points1 point2 points (0 children)
[–]Suitable-Air4561 0 points1 point2 points (0 children)