Getting Started: Visual Studio Code - ANLAB-KAIST/KENSv3 GitHub Wiki

Prerequisites

Install CLI prerequisites

Install Visual Studio Code

Install Visual Studio Code plugins

Build and run

[!NOTE]

  1. Download and extract latest version.
  2. Launch Visual Studio Code and open the extracted directory. For Widnows + WSL, please follow this instructions.
  3. Go to CMake menu vscode-1
  4. Configure CMake project

Note

You may have to select a kit for CMake. Try [Unspecified] first, and specify a compiler if there is an error.

vscode-2 vscode-3 5. Select and right click target to build 6. Build or run selected target

vscode-5 vscode-6

Troubleshooting

CMake Tools Error

Try "Reset CMake Tools extension state" section in VSCode CMake Tools Troubleshoot.

Intellisense C++17 Configuration

Set cppStandard to c++17 in c_cpp_properties.json file. See Visual Studio Code C/C++ configurations.