Getting Started¶
Requirements¶
- Blade installed and on your
PATH. If it lives elsewhere, setblade.executable. - A workspace folder that contains (at or above it) a
BLADE_ROOTfile.
Install¶
Install Blade from the VS Code Marketplace, or from a .vsix:
First run¶
- Open a Blade workspace. The extension activates when a
BLADE_ROOTis present and the Blade view appears in the Activity Bar. - Targets are loaded via
blade dump --targets. Use Blade: Refresh Targets (the refresh icon on the view) at any time to reload. - Click a target in the explorer to make it the active target, or pick one from the status-bar control. Then use the status-bar Build / Run / Test buttons.
- For C/C++ IntelliSense, run Blade: Generate compile_commands.json and install clangd when prompted.
Workspace detection¶
The extension looks for a BLADE_ROOT at or above each workspace folder; if
none is found there, it searches within the workspace. Multi-root workspaces are
supported — the first discovered root is used as the primary.