How to Scan the Workspace
The Workspace Scan capability allows development teams to run an accessibility audit across all supported source files in an entire project simultaneously, providing a complete overview of project health in Visual Studio Code.
This feature is available to Pro and Enterprise users. Scans automatically evaluate all project files matching supported formats, including:
- HTML (.html, .htm)
- React (.jsx, .tsx)
- Vue (.vue)
- Angular (.component.ts)
- Svelte (.svelte)
- Astro (.astro)
- Markdown/MDX (.md, .mdx)
- Template engines (.ejs, .hbs, .njk, .liquid, etc.)
Developers can trigger a workspace-wide audit using any of the following methods in VS Code:
11yInspect Panel Header:
- Open the A11yInspect panel from the VS Code Activity Bar.
- Select Run the Workspace Scan icon in the panel action bar.
Command Palette:
- Press
Cmd + Shift + P(macOS) orCtrl + Shift + P(Windows/Linux) - Type A11yInspect: Run Workspace Scan
- Press Enter.
Explorer Context Menu:
- Right-click the root folder or any sub-folder in the VS Code File Explorer
- Select Run Accessibility Check.
Reviewing Workspace Results
Once the scan is completed, all findings across the project are aggregated in the dedicated A11yInspect sidebar panel:
- Toggle findings view by Severity (Fail, Validate, Suggestion, Pass) or by File using the
a11yinspect.panel.groupBysetting. - Each entry displays the total issue count, issue description, and associated WCAG success criterion and level.
- Clicking any issue in the sidebar tree view opens the file and positions the editor cursor directly at the affected line and column.