Just Syntax Highlighting for VS Code
Comprehensive syntax highlighting for Justfiles - the configuration files for the just command runner.
Features
This extension provides complete syntax highlighting for all justfile features:
- Recipe definitions with parameters and dependencies
- Variable assignments and settings
- Built-in functions (arch, env_var, etc.)
- String interpolation (
{{variable}})
- Conditional expressions (
if/else)
- Embedded language support for shebang recipes
- Comments, imports, modules, and aliases
Installation
Option 1: Install from VS Code Marketplace (Recommended)
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Just Syntax"
- Click Install
Option 2: Install from Source
- Clone or download this repository
- Run
npm install to install dependencies
- Run
npm run package to create a .vsix file
- Install the .vsix file in VS Code:
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Click the "..." menu and select "Install from VSIX..."
- Select the generated .vsix file
Option 3: Manual Installation
- Copy
syntaxes/just.tmLanguage.yaml to your VS Code user data directory:
- Windows:
%USERPROFILE%\.vscode\extensions\just-syntax\syntaxes\
- macOS:
~/.vscode/extensions/just-syntax/syntaxes/
- Linux:
~/.vscode/extensions/just-syntax/syntaxes/
- Copy
package.json and language-configuration.json to the extension directory
- Restart VS Code
Usage
The extension automatically activates for files with these extensions:
You can also manually set the language mode to "Just" in VS Code.
Contributing
Contributions are welcome! Please open issues or pull requests on GitHub.
License
MIT License - see LICENSE file for details
| |