How to setup C++ in Visual Studio Code (Windows, Linux and MacOS)

preview_player
Показать описание
This video is a guide for people new to programming C++ in Visual Studio Code (vscode), and shows instructions for all three major platforms (WIndows, Linux, and MacOS). It shows how to install vscode, a compiler, and CMake. How to setup syntax highlighting, IntelliSense (code completion), CMake support, how to easily compile, and how to add debugging.
Рекомендации по теме
Комментарии
Автор

To summarise to video: Make sure to have, vscode, a compiler, and CMake installed, and download the vscode extension "C/C++ extension pack" 😂

I did record another section about how to change settings in the extension, forexample how to add other files outside of the project you want to be detected by intellisense. But I felt the video got to long and didn't add much, so will quickly write it here. If you click ctrl+shift+p, you can go to "C/C++ edit configuration (UI)", this will open a menu you can forexample change what files that should be detected while programming in the "Include path" menu. Notice that this will also generate a folder in your project called .vscode, and in that folder is a file called "c_cpp_properties.json" that stores your settings.

MichaelForestTechnologies