Contents
1. Companion Extension Capabilities
- Status Bar Shortcut: Displays
CMakeVis (<activePreset>)in the lower-left VS Code status bar whenever the active workspace containsCMakeLists.txtorCMakePresets.json. - CMake Tools Preset Synchronization: Queries
ms-vscode.cmake-toolsfor the active configure preset (cmake.activeConfigurePresetName/cmake.configurePreset) and launches CMakeVis with--open <folder> --preset <activePreset>. - Editor Title Bar Action: Displays a CMakeVis launch control in the editor title bar when inspecting
CMakeLists.txt,CMakePresets.json,CMakeUserPresets.json, orvcpkg.json. - Explorer Context Menu: Right-click any subproject folder,
CMakeLists.txt, orCMakePresets.jsonin the VS Code Explorer and select CMakeVis: Open Folder / Subproject in CMakeVis. - Interactive Preset Picker: Parses non-hidden configure presets from
CMakePresets.jsonandCMakeUserPresets.json(including"include"files), switches CMake Tools to the selected preset, and opens CMakeVis directly to that preset.
2. Installation, Packaging & Executable Discovery
Option A: Package & Install Locally (.vsix)
From the vscode-extension/ directory of the CMakeVis distribution:
cd vscode-extension
npx @vscode/vsce package
code --install-extension cmakevis-vscode-0.1.0.vsix
Alternatively, install through the Visual Studio Code interface: Extensions (Ctrl+Shift+X) → ... → Install from VSIX...
Option B: Run in Extension Development Host (F5)
Open the CMakeVis workspace in Visual Studio Code, select CMakeVis VS Code Extension: Launch Extension Host in Run and Debug (Ctrl+Shift+D), and press F5.
Executable Discovery Order
- User setting
cmakevis.executablePath(when non-empty and pointing to a valid executable on disk). - Workspace or sibling build output directories (
src/CMakeVis/bin/Release/.../CMakeVis.exeon Windows,src/CMakeVis.Linux/bin/.../CMakeVis.Linuxon Linux). - System
PATHand standard installation directories (%LocalAppData%\Programs\CMakeVis\CMakeVis.exe,%ProgramFiles%\CMakeVis\CMakeVis.exe,/usr/bin/cmakevis).
If the CMakeVis binary cannot be resolved automatically on initial invocation, the extension prompts with a native file selector and persists the selected path to global cmakevis.executablePath.
3. Command Palette Reference
| Command Identifier | Command Title | Description |
|---|---|---|
cmakevis.openDesigner |
CMakeVis: Open Visual CMake Designer | Opens the nearest root CMake workspace in CMakeVis using the active CMake Tools configure preset. |
cmakevis.openFolderInCMakeVis |
CMakeVis: Open Folder / Subproject in CMakeVis | Opens the selected folder or CMakeLists.txt parent directory in CMakeVis. |
cmakevis.selectPresetAndOpen |
CMakeVis: Pick CMake Preset & Open Designer | Lists non-hidden configure presets from CMakePresets.json / CMakeUserPresets.json, applies the selection in CMake Tools, and launches CMakeVis. |
cmakevis.syncCMakeTools |
CMakeVis: Refresh CMake Tools from CMakeVis Changes | Updates the status bar preset badge and invokes cmake.configure within VS Code CMake Tools. |
4. Configuration Settings
| Setting Key | Type & Default | Description |
|---|---|---|
cmakevis.executablePath |
string ("") |
Explicit filesystem path to CMakeVis.exe (Windows) or CMakeVis / CMakeVis.Linux (Linux). |
cmakevis.passActiveCMakeToolsPreset |
boolean (true) |
Forwards --preset <name> from VS Code CMake Tools when launching CMakeVis. |
cmakevis.autoSyncCMakeTools |
boolean (true) |
Monitors **/CMakeLists.txt, CMakePresets.json, CMakeUserPresets.json, and vcpkg.json and triggers cmake.configure automatically when CMake Tools is active (debounced at 600ms). |
{
"cmakevis.executablePath": "C:\\Program Files\\CMakeVis\\CMakeVis.exe",
"cmakevis.passActiveCMakeToolsPreset": true,
"cmakevis.autoSyncCMakeTools": true
}
5. Bi-Directional CMakeVis ↔ Visual Studio Code Workflow
- Open a repository in Visual Studio Code with CMake Tools set to a configure preset such as
windows-clang-debug. - Select CMakeVis (windows-clang-debug) in the status bar to launch CMakeVis with
windows-clang-debugpre-selected in the Preset Designer and Build ribbon. - Modify targets, wire library dependencies, adjust compiler flag tokens, or refine preset inheritance, then select Export CMake or Save Presets.
- The companion extension detects updated
CMakeLists.txtorCMakePresets.jsonfiles on disk (debounced) and automatically refreshes VS Code CMake Tools. - From any compiler entry in CMakeVis's Diagnostics drawer or any file listed in Target Information, select VS Code to jump directly to the exact source location via
code -g file:line.
6. CMakeVis CLI Reference
| Flag | Description |
|---|---|
--open <path> |
Loads the specified CMake workspace directory at startup in place of the empty canvas. |
--preset <name> |
Activates the designated configure preset immediately after loading the workspace. |
--self-test |
Executes an automated headless verification cycle across all six workspace tabs and exits. |
--self-test --screenshot <png> |
Pairs with --self-test to export a rendered 1400×900 PNG snapshot of the dependency graph canvas before exiting. |