Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Editor Setup

VSCode

Install the Specl extension from the VS Marketplace.

Features

  • Diagnostics — parse and type errors as you type
  • Hover — type information on mouse-over
  • Completion — keywords, types, and declarations
  • Go-to-definitionCmd+Click / F12
  • Find all referencesShift+F12
  • RenameF2
  • FormatShift+Option+F (macOS) / Shift+Alt+F (Linux/Windows)
  • Document symbols — outline view of all declarations
  • Inlay hints — parameter names shown inline at call sites
  • Code lens — reference counts above action and function declarations
  • Signature help — parameter info when typing action/function calls
  • Call hierarchy — incoming/outgoing call relationships
  • Semantic highlighting — keywords, types, variables, functions

Format on save

Add to your settings.json:

{
    "[specl]": {
        "editor.formatOnSave": true
    }
}

Building from source

If you prefer to build locally:

cargo install --path crates/specl-lsp
cd editors/vscode && npm install && npm run bundle
npx vsce package && code --install-extension specl-*.vsix