How To Use VS CODE for C++ | With CMake & Any Compiler

preview_player
Показать описание
Going over a starter template to manage your C++ project with Visual Studio Code.

-- References --

-- Code, Tech, and Tutorials Links --

-- Other CTT Playlists You Might Like --

Please let me know if any of these links are broken! Thanks!

Other ways to support me, Matt, the creator and maintainer of this channel:
Other One Time Support Options:
▶ Use YouTube Thanks _support:
Patrons help this channel go round and keep creating. If you don't like patreon but still would like to support regularly, you can do a similar subscription via the YouTube Join, or through Github's sponsor button.

This is were I most the majority of the code seen on the channel.

We have a Discord! We welcome all various code and tech chatter.

I stream code and/or gaming every Thursday! I also randomly stream a time or two throughout most weeks.
Рекомендации по теме
Комментарии
Автор

Thank you for this. In just 10 minutes I was able to get to the meat of writing and running C++ in VSCode.

lordrevan
Автор

with that sound in the back and your voice i feel like getting enlightened thank you for the great video

omarbgm
Автор

I think @8:02 you can specify the different build scripts in a task. Json file and hit shift + Ctrl +B to pick which script you want . That way you don't have to write the build script over and over.

naserjnealhouti
Автор

Let's
Thank you so much for making this.

naserjnealhouti
Автор

you have the most relaxing voice omf

great video !!

ayls
Автор

@8:02 "Can you turn this into a button" - there is a button already there, in your VScode version too.
Bottom blue task bar - somewhere in the middle - there is a cog and "Build" button :P When you click it it builds whatever config you selected - which is specified on another button to the left - here "CMake: [Debug]: Ready" - when you click on it you can change between

But I like your video otherwise, good effort :)

patrycja
Автор

That was very helpful, thanks for explaining the launch.json file. By the way, I like your vibe

moxx_
Автор

So the MSBuild.exe was not recognized in my terminal what am I supposed to do from there, where did the command come from?

EDIT:
ok so I just had to add that the user's PATH environment variable:
C:\Program Files (x86)\Microsoft Visual

It might Enterprise/ instead of Community/ directory or something entirely different for other people.

williamsokol
Автор

Could you please make video for using C++ and VsCode in linux and how to configure tasks, launch, c_cpp_properties json fils and how to debugging application ? ☺

siamakmirifar
Автор

man, you just saved my ass, you have no idea. thank you so much

elusivepotato
Автор

Thank you, random youtube video! You saved my sanity.

lmshomy
Автор

after doind ctrl+ shit +p -> Cmake : quickstart, i can not see any option with VS Community 2019 release... options. what can be wrong here in VScode? (i have already install CMAKE, C/C++ extension in VS code)

ajays
Автор

this method is tightly coupled to windows platform. There should be another way that doesn't use MS Visual Studio.

winuxworx
Автор

I don't see the .sln project file, what do I do?

punchline
Автор

3:12 what did you do here? why do you suddenly habe a "build" folder? where did that come from?

freakfreak
Автор

Can you do one on how to get this working in linux?

Dev_Everything
Автор

what about all those buttons in the blue bar at the bottom of the screen

smittywerbenjj
Автор

why cant we compile the Cmake List from Visual Studio Code?

dominikz
Автор

My build folder did not get created after running the >cmake: quickstart in the command pallette. Anyone know why?

joshuamcdonald
Автор

Is there a way to run a watcher and rebuild automatically, ideally with the new vs 2022 hot reloading?

jeremycoleman