How Do I…¶
This page talks about and links to documentation concerning common tasks andprocesses.
Create a New Project?¶
Run theCMake: Quick Start command in a directory with no
CMakeLists.txt.
Check outCMake Tools’ Quick Start.
Configure a Project?¶
Run theCMake: Configure command.
Check out theGetting Started - Configuring section,or the more in-depthCMake Configuring documentation.
Build a Project?¶
Run theCMake: Build command, pressF7, or press theBuild buttonin the status bar.
See theGetting Started - Building section, or thein-depthCMake Building documentation.
Debug a Project?¶
Run theCMake: Debug Target command, pressCtrl+F5, or press theDebug button in the status bar.
There’s a lot to this one. Check out theTarget Debugging and Launching page for moreinformation.
Pass Command Line Argument to the Debugger?¶
See theDebugging with CMake Tools and launch.json documentation.
Set Up Include Paths for C++ IntelliSense?¶
CMake Tools currently supports Microsoft’s cpptools extension.If the cpptools extension is installed and enabled, then configuring yourproject will attempt this integration automatically.
The first time this integration is attempted, cpptools will show a promptconfirming that you wish to use CMake Tools to provide the configurationinformation for your project. Accepting this prompt is all you need to do toactivate the integration. From then on, CMake Tools will provide andautomatically update cpptools’ configuration information for each source filein your project.
Happy IntelliSense-ing!