Roc language VSCode extension (unofficial)

May 11, 2025 ยท View on GitHub

The unofficial VSCode extension for the Roc language. Download it from:

Features

  • Syntax highlighting
  • With the language server:
    • Shows errors/warnings inline
    • Hover to view type
    • Go-to-definition (not for builtins)
    • Format on save

Configuring language server

The roc_language_server binary is included with the roc nightly. You can also build it from source if you need to.

Update your VSCode settings.json to point to the language server binary location:

{
  "roc-lang.language-server.exe": "<path to language server binary>",
  // If you'd like to format Roc files on save
  "editor.formatOnSave": true
}

Release Notes

0.1.0

  • Language server integration

Contributors

Big kudos to early contributors: