This page links to documentation for common tasks.
- From the command palette in VS Code, run the CMake: Quick Start command in a directory that doesn't have a
CMakeLists.txt
file. - See the CMake Tools on Linux tutorial
- From the command palette in VS Code, run the CMake: Configure command.
- See the Configure Hello World section of the CMake Tools on Linux tutorial, or the more in-depth CMake Tools configure step documentation.
- From the command palette in VS Code, run the CMake: Build command, press the keyboard shortcut F7, or select the Build button in the status bar.
- See the Build hello world section of the CMake Tools on Linux tutorial, or the more in-depth Build with CMake Tools documentation.
- From the command palette in VS Code, run the CMake: Debug Target command, press the keyboard shortcut Ctrl+F5, or press the Debug button in the status bar.
- See the CMake:Target debugging and launching page for more information.
See Debug using a launch.json file.
CMake Tools currently supports Microsoft's ms-vscode.cpptools extension. If the ms-vscode.cpptools extension is installed and enabled, then configuring your project will provide this integration automatically.
ms-vscode.cpptools will show a prompt confirming that you wish to use CMake Tools to provide the configuration information for your project. Accept this prompt to activate the integration. Subsequently, CMake Tools will provide and automatically update cpptools configuration information for each source file in your project.
- Explore the CMake Tools documentation