Just
Syntax highlighting and language support for just in VS Code, with the just-lsp language server bundled as a WebAssembly module.
Install from the VS Code Marketplace
What it does
| Capability |
What you get |
| Syntax highlighting |
Full just grammar: comments, settings, variables, strings and {{ interpolation }}, recipes (attributes, names, params, dependencies), builtins, constants, operators |
| Embedded languages |
Shell, Python, JavaScript, TypeScript, Ruby, Perl, and Deno recipe bodies |
| Diagnostics |
Inline errors and warnings from the bundled analyzer — undefined identifiers, unused variables and recipe parameters, syntax errors, and more |
| Hover |
Definition summaries and documentation on hover |
| Recipe tree |
A "Just Recipes" activity-bar view listing every recipe in the workspace, grouped by justfile |
| Code lenses |
Run / Run with arguments above each recipe |
| File decorations |
Recipe counts shown on justfiles in the explorer |
| Tasks |
Recipes exposed as VS Code tasks |
| Run recipes |
From the tree, code lens, or command palette; with or without arguments; in a terminal or the output channel |
| Format on save |
Uses the just binary to format justfiles |
What it contributes
- Bundled language server.
just-lsp is compiled to wasm32-unknown-unknown and shipped inside the extension, so diagnostics and hover work out of the box with nothing to install.
- Recipe runner. Recipes are first-class: run them, pass arguments, and see them in the task system.
- Workspace navigation. Jump between justfiles and recipes from the tree, code lenses, and commands.
Install
From the VS Code Marketplace:
ext install k0in.justlang
Or search "Just" in the Extensions panel.
For open-source VS Code builds, download the .vsix from the releases page and install with:
code --install-extension justlang-X.Y.Z.vsix
Usage
- Open a
justfile (or any *.just file).
- Hover over a recipe or variable to see its documentation.
- Errors and warnings appear inline as you type.
- Use the Just Recipes view, code lenses, or the command palette to run recipes.
Commands
| Command |
Description |
Just: Format Document |
Format the current justfile |
Just: Run Recipe |
Run a recipe |
Just: Run Recipe with Arguments |
Run a recipe, prompting for each parameter |
Just: Refresh Recipes |
Refresh the recipe tree |
Just: Go to Justfile |
Open the justfile a recipe belongs to |
Just: Go to Recipe |
Jump to a recipe definition |
Settings
| Setting |
Default |
Description |
justlang.justPath |
just |
Path to the just binary |
justlang.runInTerminal |
false |
Run recipes in a terminal instead of the output channel |
justlang.useSingleTerminal |
false |
Reuse a single terminal for recipe runs |
justlang.logLevel |
info |
Log level (info, warning, error, none) |
justlang.contributeTasks |
true |
Contribute recipes as VS Code tasks |
License
MIT — see LICENSE.
The bundled just-lsp analyzer is CC0-1.0 (public domain); its vendored tree-sitter grammar is Apache-2.0. Both permit redistribution.
| |