Skip to content

mise.toml language support

This extension provides basic syntax highlighting for mise.toml/mise.lock files. For the best experience with syntax highlighting and autocompletion in mise.toml files, you should install one of these TOML extensions:

The extension will notify you on startup if neither is installed.

mise-vscode provides syntax highlighting for tera used for templating in mise.toml files

mise-toml-language-support.png

If you use tasks_config.includes to include some additional tasks files, add the following at the top of your file to get auto-completion and validation from tombi or even-better-toml.

#:schema https://mise.jdx.dev/schema/mise-task.json
[build]
run = "echo Hello, World!"

Tool names and versions are autocompleted in the tools section of a mise.toml file.

Screenshot showing autocompletion of tool version

Code completion is provided for depends = ["task_name"], depends_post = ["task_name"], wait_for = ["task_name"].

This extension adds the following code lens features:

  • Each task has a run and watch code lens that will run the task
  • A add tool code lens that to automatically add a tool to a mise.toml file
  • Cmd/Ctrl+Click on an included file will open that file (example: include = ["tasks.toml"])

If you are using multi-lines task script with a shebang, syntax highlighting will be applied to the script.

The following languages are supported: Python, Node.js, Deno, Bun, Deno, Ruby, Bash, and Shell.

screenshot showing syntax highlighting support when shebang is used