Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>rsvelteNew to Visual Studio Code? Get it now.
rsvelte

rsvelte

baseballyama

|
1 install
| (0) | Free
Rust-powered Svelte formatting and linting for VS Code (rsvelte-fmt + rsvelte_lint)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

rsvelte for VS Code

Rust-powered formatting and linting for Svelte, powered by rsvelte — a port of the Svelte compiler to Rust. This extension bundles @rsvelte/language-server and launches it over stdio.

Features

  • Format on demand / on save via the native rsvelte-fmt CLI. Works for .svelte plus the JS/TS/CSS/JSON families (everything is dispatched to oxfmt internally for a complete format).
  • Inline diagnostics from the bundled rsvelte_lint engine (compiler warnings + a11y + native rules). No extra install — the linter ships inside the extension as wasm.

Type-checking is out of scope for now; use @rsvelte/svelte-check for batch type-checking.

Requirements

Formatting requires the native rsvelte-fmt binary. Install it in your project:

npm install -D @rsvelte/fmt

The extension resolves node_modules/.bin/rsvelte-fmt from the workspace. If it isn't found, formatting is disabled (linting still works). You can point at a specific binary with rsvelte.rsvelteFmtPath.

Setup as the default formatter

To format Svelte files with rsvelte, set it as the default formatter (so it doesn't conflict with the official Svelte extension):

// .vscode/settings.json
{
  "[svelte]": {
    "editor.defaultFormatter": "rsvelte.rsvelte-vscode"
  }
}

Settings

Key Default Description
rsvelte.format.enable true Enable formatting via rsvelte-fmt.
rsvelte.lint.enable true Enable linting via the bundled engine.
rsvelte.rsvelteFmtPath "" Explicit path to a rsvelte-fmt binary.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft