Yazi Toolkit
Complete IntelliSense, validation, and documentation for yazi.toml, keymap.toml, and theme.toml configuration
Yazi is a blazing-fast terminal file manager written in Rust. This extension brings first-class editing support for its configuration files (yazi.toml, keymap.toml, and theme.toml) directly into VS Code.
Features
IntelliSense Completions
Full autocompletion for all Yazi sections, their options, enum values, and boolean fields.
- Section headers - Autocomplete
[section_name] with all known sections
- Option keys - Context-aware completion with types and defaults per section
- Enum values - Smart completions for
sort_by (alphabetical, created, modified, natural, size, random) and linemode values
- Booleans -
true / false suggestions for boolean options
Hover Documentation
Hover over any section name or option to see its description, type, default value, and a direct link to the Yazi documentation.
Diagnostics and Validation
Real-time validation catches configuration errors as you type:
- Unknown configuration sections
- Unknown options within sections
- Type mismatches (string where boolean expected, etc.)
Snippets
Quick-start templates for common configurations:
| Prefix |
Description |
yazi-starter |
A complete Yazi starter configuration with common settings |
yazi-opener |
Custom file opener definition |
yazi-plugin |
Plugin configuration with custom previewers and preloaders |
yazi-sort |
Sort configuration for the file manager |
yazi-preview |
Preview pane settings with dimensions and Ueberzug options |
Supported Sections
All official Yazi configuration sections are supported with full option definitions:
manager preview opener open tasks plugin input confirm select which log
Installation
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X / Cmd+Shift+X)
- Search for Yazi Toolkit
- Click Install
Or install from the command line:
code --install-extension atoolz.yazi-vscode-toolkit
Requirements
- VS Code 1.85.0 or higher
- A TOML language extension (e.g., Even Better TOML) for syntax highlighting
The extension activates automatically when you open a file named yazi.toml, keymap.toml, or theme.toml.
Contributing
Contributions are welcome. Please open an issue or pull request on GitHub.
License
MIT