close

VSCode Extension

Install the official extension from the VS Code Marketplace. It provides:

  • Real-time diagnostics as you type
  • Code actions for auto-fixable rules
  • Auto-fix on save via source.fixAll.rslint
  • Multi-workspace support

The extension works out of the box — it uses the built-in rslint binary and automatically picks up your rslint.config.ts.

Rstack extension

The unified Rstack extension (rstack.rstack) brings Rslint, Rstest, and formatting together in one install and is where new editor features land. This standalone rstack.rslint extension will be deprecated in the future, so we recommend that existing users migrate now and that new setups use rstack.rstack.

To switch, install rstack.rstack from the VS Code Marketplace or, for Cursor, Trae, and VSCodium, from Open VSX. Disable or uninstall rstack.rslint so only one copy of Rslint runs, then re-enter settings under rstack.rslint.* as described in the migration notes.

Auto-fix on Save

To automatically fix lint issues when you save a file, add the following to your VS Code settings (.vscode/settings.json):

{
  "editor.codeActionsOnSave": {
    "source.fixAll.rslint": "explicit"
  }
}
ValueBehavior
"explicit"Fix on manual save (Ctrl+S / Cmd+S) only — recommended
"always"Fix on every save, including auto-save
"never"Disable auto-fix on save

Settings

SettingDefaultDescription
rslint.enabletrueEnable or disable the linter
rslint.binPathbuilt-inBinary source: built-in, local (workspace), or custom
rslint.customBinPathPath to a custom rslint binary (when binPath is custom)
rslint.trace.serveroffLSP trace level: off, messages, or verbose