- Install Build Tools for Visual Studio 2017/2019 from here: https://visualstudio.microsoft.com/downloads/
- Install VS Code
- Install VS Code C++ official extension
- Run Developer Command Prompt for VS 2017/2019 from start menu
- Inside developer command prompt run command
code
- Open this folder in VS Code
- Open
src/hello_world.cpp
- Press
Ctrl+Shift+B
to build - Press
F5
to build and debug - Press
Alt+Shift+F
to format
- Press
- Enjoy!
More information here: https://code.visualstudio.com/docs/cpp/config-msvc