A Visual Studio Code extension for running accessibility audits using be-a11y. This extension allows you to analyze your project or a remote website for accessibility issues directly from VSCode. Results are presented in a convenient way and can be saved for further review.
- Run accessibility audits on the current workspace (local project) or any URL
- View results directly in VSCode
- Save the latest accessibility report to a file
- All actions available in the Activity Bar panel or via Command Palette
git clone https://github.com/be-lenka/vscode-be-a11y.git
cd vscode-be-a11ynpm installnpm run compile- Open the folder in VSCode:
code .
- Press
F5to open a new Extension Development Host window. - The "be-a11y" icon will appear in the Activity Bar (on the left side).
- Set Target
- In the be-a11y Activity Bar panel, select:
- Set target (URL or Local project): Choose whether to audit a remote website or the current workspace.
- In the be-a11y Activity Bar panel, select:
- Run Audit
- Click Run accessibility audit and generate report.
- The results will open in a new editor tab.
- After running an audit, use Save last accessibility report in the Activity Bar panel to save the latest results to a file.
All actions are also available via the Command Palette (Ctrl+Shift+P or Cmd+Shift+P):
beA11y: Set targetbeA11y: Run accessibility auditbeA11y: Save last accessibility report
- Source code is in the
src/directory. - The extension entry point is
src/extension.ts. - TypeScript configuration:
tsconfig.json.
To build and package the extension for distribution:
npm run build
npx vsce packageThis will generate a .vsix file you can install in VSCode.
- If you see a message about missing
be-a11ylibrary, make sure you've runnpm install. - If the panel does not appear, check that your
package.jsonhas the correct contribution points and the extension was compiled.
MIT