VS Code extension for Erlang projects using the nera compiler. Provides:
- Syntax highlighting for
.erl,.hrl,.xrl,.yrl, and.escriptfiles (bundled TextMate grammar — no other Erlang extension required) - LSP diagnostics via
nera lsp(parse errors, validation warnings) - Erlang language configuration (comment toggling, bracket matching, auto-closing pairs)
cd editors/vscode-nera
npm install
npm run compileThis compiles the TypeScript source into out/.
Create a symlink in the VS Code extensions directory:
# macOS / Linux
ln -s "$(pwd)" ~/.vscode/extensions/vscode-nera
# Then reload VS Code (Cmd+Shift+P → "Developer: Reload Window")Changes to the grammar or language configuration take effect on reload. TypeScript changes require re-running npm run compile first.
Install the packaging tool and build a .vsix:
npm install -g @vscode/vsce
vsce packageThis produces vscode-nera-0.1.0.vsix. Install it with:
code --install-extension vscode-nera-0.1.0.vsixWatch mode recompiles TypeScript on save:
npm run watch| Setting | Default | Description |
|---|---|---|
nera.path |
nera |
Path to the nera binary |
MIT. The bundled Erlang TextMate grammar is from erlang-ls/grammar under the Apache-2.0 license — see NOTICE.