A TOML language support extension backed by Taplo.
It is currently a preview extension, it might contain bugs, or might even crash. If you encounter any issues, please report them on github.
TOML version 1.0.0 support
This extension will try to support all the TOML versions in the future.
Syntax highlighting for TOML documents with TextMate grammar.
The extension defines custom scopes for array headers and arrays of tables.
In order to differentiate them from regular keys, you can set your own colors for them. Unfortunately this has to be done manually.
You might also want to set a color for dates and times, as they don't have have one in most themes.
Custom color settings for the Dark+ theme
Semantic key highlighting for inline tables and arrays can be enabled in the settings.
You need to set extended colors in order for this to have any practical effect.
Arrays, multi-line strings and top level tables and comments can be folded.
Symbol tree and navigation
Works even for tables not in order.
The formatter is rather conservative by default, additional features can be enabled in the settings. If you're missing a configuration option, feel free to open an issue about it!
Completion and Validation with JSON Schema
There is support for completion, hover text, links and validation.
Schemas can be associated with document URIs with the
You can provide your own schemas or use the ones provided with the extension. More details here. Schema submissions and fixes are welcome!
Several schemas are bundled with the extension, these can be turned off individually by removing their associations.
More information on the website.
Schemas can be submitted to and used from an online repository, more information here. Submissions are always welcome!
The extension provides commands for easy JSON<->TOML conversions.
Taplo CLI's configuration file is supported and automatically found in workspace roots, or can be manually set in the VS Code configuration.