Lox for Visual Studio Code
The VS Code Lox extension
provides rich language support for the Lox programming language as defined by the Crafting
Interpreters book.
Features
- IntelliSense - Results appear for symbols as you type.
- Code navigation - Jump to or peek at a symbol's declaration.
- Code editing - Support for formatting.
- Diagnostics - Build and lint errors shown as you type.
- Syntax highlighting.
Requirements
- Visual Studio Code 1.74 or newer
Quick Start
Install the VS Code Lox
extension.
Open any Lox file to automatically activate the extension.
The extension depends on loxls (the Lox language server) to provide language features. loxls is
bundled with the extension on most operating systems:
- Windows ARM
- macOS Intel
- Linux ARM64
- Windows x64
- macOS Apple Silicon
- Alpine Linux 64 bit
- Alpine Linux ARM64
- Linux ARM32
- Linux x64
To enable language features on unsupported operating systems, install loxls with
go install github.com/marcuscaisey/lox/loxls@latest
and then set lox.loxlsPath to its path. To disable language features, set lox.useLanguageServer: false.
Attribution
The .lox file type icon and icon for this extension are taken from the favicon and header of
Crafting Interpreters by Bob Nystrom.
Used under the CC BY-NC-ND 4.0 License.
| |