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

Sway

Fuel Labs

|
3,266 installs
| (2) | Free
Sway language extension for Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
Sway VSCode Plugin

Visual Studio Marketplace Version discord

This extension provides LSP support for the Sway smart contract programming language.

Features

  • goto type definition
  • find all references
  • types and documentation on hover
  • inlay hints for types and parameter names
  • semantic syntax highlighting
  • symbol renaming
  • code actions
  • imports insertion

Coming Soon

  • code completion
  • apply suggestions from errors
  • workspace symbol search
  • ... and many more

Quick start

  1. Install the Fuel toolchain.
  2. Ensure forc-lsp is installed correctly by entering forc-lsp --version into your terminal.
  3. Install the Sway VSCode plugin.

Configuration

This extension provides configurations through VSCode's configuration settings. All configurations are under sway-lsp.*.

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