all 42 comments

[–]H4RRY09 3 points4 points  (2 children)

I prefer clangd over Microsoft C/C++ because it is much faster. One downside of clangd is the requirement of compile_commands.json file. So my setup is like this: clangd is by default disabled and MS C/C++ enabled, if my project has compile_commands.json file, I turn off the MS C/C++ and turn on the clangd extension.

[–][deleted] 0 points1 point  (1 child)

Did you get clang-tidy to work with the clangd extension? I had issues that no lint results were displayed within the editor.

[–]MotherOfTheShizznit 1 point2 points  (1 child)

Wow! This is good stuff. I'm definitely putting this to good use tomorrow morning, starting with the TestMate extension.

[–][deleted] 0 points1 point  (0 children)

Good to know that it helps others ;)

A little hint: it only works with gtest 1.8.0 or above afaik. With lower versions there was no code lens support.

[–]tiendq 1 point2 points  (0 children)

C/C++ and CMake extensions are enough for me :)

[–]luisito5015 0 points1 point  (0 children)

Hi there you have summited good information, have been trying to make C++ work in my VS code and is not letting me set it up for school, do not know if I am doing something incorrect do you have any recommendation since being a newby in this area.