VSCode extension that provides IntelliSense for Backstage app-config.yaml files.
Works in both VSCode and Cursor.
- Auto-completion: Get intelligent suggestions for Backstage configuration keys
- Validation: Validate
app-config*.yamlagainst the Backstage configuration schema (based on installed plugins/packages) and surface any YAML syntax errors - Hover support: Hovering over a configuration key shows its description when provided by the Backstage schema
- Workspace-aware schema: The schema is generated per
app-config*.yamldirectory, so switching workspaces uses the appropriate schema for that workspace - Manual regeneration: Regenerate schema on demand when you install new plugins
This extension:
- Detects when you open an
app-config*.yamlfile - Runs
yarn backstage-cli config:schema --format=json --mergein the directory containing that file - Provides the generated JSON schema to the YAML Language Server through the VS Code YAML extension
The schema is cached per app-config*.yaml directory until you explicitly regenerate it using the Backstage: Regenerate Config Schema command.
- VSCode 1.80.0 or higher
- YAML extension by Red Hat
- A Backstage repository where
backstage-cliis installed
In VSCode, open the Extensions view (Ctrl+Shift+X / Cmd+Shift+X), search for Backstage Configuration, and select Install.
Alternatively, install directly from the VSCode Marketplace.
- Download or build the
.vsixfile - In VSCode, open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
- Go to Extensions view
- Run
Extensions: Install from VSIX... - Select the
vscode-backstage-configuration-x.x.x.vsixfile
git clone https://github.com/dzemanov/vscode-backstage-configuration.git
cd vscode-backstage-configuration
npm installThen press F5 in VSCode to launch the extension in debug mode.
When testing, make sure to open your Backstage project in the Extension Development Host window.
- Open a Backstage project in VSCode
- Open any
app-config*.yamlfile - Start typing - IntelliSense will suggest available configuration options
Backstage: Regenerate Config Schema- Refreshes the configuration schema used for IntelliSense for the currently openedapp-config*.yaml(or, if none is open, the last activeapp-config*.yamldirectory).
npm install
npm run compile
npm run package
npx @vscode/vsce packageThis will create a .vsix file that can be installed in VSCode.
MIT