Commands
All available commands in the VertaaUX VS Code Extension
Commands
The VertaaUX VS Code Extension provides three commands for scanning code and viewing results.
Command Reference
| Command | Title | Description |
|---|---|---|
vertaaux.scanCurrentFile | VertaaUX: Scan Current File | Scan the active editor for UX issues |
vertaaux.scanWorkspace | VertaaUX: Scan Workspace | Scan all matching files in the workspace |
vertaaux.showIssues | VertaaUX: Show Issues Panel | Open the Issues TreeView |
Scan Current File
Command ID: vertaaux.scanCurrentFile
Analyzes the currently open file for UX and accessibility issues.
How to Run
- Command Palette: Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux), type "Scan Current File" - Keyboard Shortcut: (Not bound by default - see Custom Keybindings)
Prerequisites
- MCP Server running in HTTP mode
- Active editor with a supported file type
Supported File Types
| Extension | Framework |
|---|---|
.tsx | React TypeScript |
.jsx | React JavaScript |
.vue | Vue.js |
.html | Static HTML |
.svelte | Svelte |
What Happens
- Extension reads the active document content
- Sends code to MCP Server via HTTP POST
- MCP Server calls VertaaUX API for analysis
- Results are filtered by confidence threshold
- Issues appear as VS Code diagnostics (underlines in code)
- Issues TreeView is updated
Output
- Diagnostics: Squiggly underlines appear at issue locations
- Problems Panel: Issues listed with severity and message
- Issues TreeView: Hierarchical view of issues by file
Problems Panel:
Button.tsx (2 issues)
Line 5: [warning] Touch target may be too small
Line 8: [info] Consider adding aria-labelScan Workspace
Command ID: vertaaux.scanWorkspace
Scans all supported files in your workspace for UX issues.
How to Run
- Command Palette: Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux), type "Scan Workspace"
Prerequisites
- MCP Server running in HTTP mode
- Workspace folder open
What Happens
- Extension identifies all supported files in the workspace
- Sends file contents to MCP Server in batches
- Results are aggregated and displayed
- Progress notification shows scan status
Performance Notes
- Large workspaces may take longer to scan
- Scans files matching supported extensions only
- Results are cached until next scan
- Consider scanning individual files during development
Output
All issues across the workspace appear in:
- Problems Panel: Grouped by file
- Issues TreeView: Navigable tree structure
Show Issues Panel
Command ID: vertaaux.showIssues
Opens the VertaaUX Issues TreeView panel.
How to Run
- Command Palette: Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux), type "Show Issues Panel" - Activity Bar: Click the VertaaUX icon in the left sidebar
What It Does
Opens the VertaaUX activity bar panel containing the Issues TreeView. This provides a dedicated view for browsing scan results outside the Problems panel.
See Issues Panel for detailed usage.
Custom Keybindings
The extension does not define default keyboard shortcuts. You can add custom keybindings in VS Code:
- Open Keyboard Shortcuts:
Cmd+K Cmd+S(Mac) orCtrl+K Ctrl+S(Windows/Linux) - Search for "vertaaux"
- Click the + icon to add a keybinding
Example keybindings.json:
[
{
"key": "cmd+shift+v",
"command": "vertaaux.scanCurrentFile",
"when": "editorTextFocus"
},
{
"key": "cmd+shift+alt+v",
"command": "vertaaux.scanWorkspace"
}
]Choose shortcuts that don't conflict with existing VS Code bindings. The examples above use Cmd+Shift+V which is typically unbound.
Error States
| Error | Cause | Solution |
|---|---|---|
| "Cannot connect to MCP server" | Server not running | Start MCP Server with --http flag |
| "No active editor" | No file open | Open a supported file type |
| "Unsupported file type" | File extension not recognized | Use a supported extension (.tsx, .jsx, etc.) |
| "Scan timeout" | Analysis took too long | Try a smaller file or check network |
Was this page helpful?