Skip to content

VS Code Extension

The Unfault VS Code extension VS Code extension provides real-time feedback as you write code.

  1. Open VS Code
  2. Press Cmd+Shift+X (macOS) or Ctrl+Shift+X (Windows/Linux)
  3. Search for “Unfault”
  4. Click Install

On first use, the extension prompts you to sign in. Click the Unfault icon in the status bar, then “Sign In”.

As you edit code, Unfault highlights issues inline with squiggly underlines:

  • Red - Critical issues that will likely cause production problems
  • Yellow - Warnings worth addressing
  • Blue - Informational suggestions

Hover over any highlight to see the full explanation.

When Unfault detects an issue, click the lightbulb icon or press Cmd+. to see available fixes.

Select a fix to apply it immediately, or choose “Show Details” to learn more.

All findings appear in VS Code’s Problems panel (View > Problems).

Click any entry to jump to the relevant code location.

By default, Unfault scans your file every time you save. You can change this in settings.

Open Settings (Cmd+,) and search for “Unfault”:

SettingDescriptionDefault
unfault.scanOnSaveScan files when savedtrue
unfault.scanOnOpenScan files when openedtrue
unfault.showInlineHintsShow inline hintstrue
unfault.profilesActive profiles["all"]
unfault.severityMinimum severity to showwarning

Configure Unfault in your project’s manifest file (pyproject.toml, Cargo.toml, package.json) or use a standalone unfault.toml. See the Configuration Reference for details.

Access commands via Command Palette (Cmd+Shift+P):

CommandDescription
Unfault: Scan Current FileRun analysis on active file
Unfault: Scan WorkspaceAnalyze entire workspace
Unfault: Apply All FixesApply all available fixes
Unfault: Show Rule DetailsView documentation for selected issue
Unfault: Sign InAuthenticate with Unfault
Unfault: Sign OutRemove credentials

The status bar shows:

  • Unfault icon - Click to run a scan
  • Issue count - Number of issues in current file
  • Auth status - Connection state
ShortcutAction
Cmd+Shift+UScan current file
Cmd+.Show quick fixes
F8Go to next problem
Shift+F8Go to previous problem
  1. Check that you have a valid subscription
  2. Run “Unfault: Sign In” from Command Palette
  3. Check Output panel for error messages

The extension analyzes files on save. For large projects, consider:

  • Closing files you’re not actively editing
  • Using VS Code’s built-in file exclusions in Settings → Files: Exclude

Ensure VS Code and CLI are using the same configuration file.