VS Code has no built-in support for TOML, so files like Cargo.toml, pyproject.toml or config.toml open as plain text: no colours, no error checking, no formatting.
TOML Companion notices when you work with TOML files and helps you get proper TOML support installed. It is a lightweight assistant, not a language server. The real language features come from the extension it recommends.
What it does
Detects TOML files automatically when you:
open an existing .toml file,
create a new .toml file in VS Code,
save an untitled document as .toml,
switch a document's language mode to TOML,
start VS Code with TOML files already open.
Checks what you already have. If Even Better TOML, or any other extension that provides TOML syntax highlighting, is installed and enabled, TOML Companion stays silent.
Otherwise, recommends Even Better TOML with a notification:
TOML Companion detected a TOML file. Install Even Better TOML (by tamasfe) for syntax highlighting, validation, and language support?
Button
What happens
Install Extension
Installs it through VS Code, with progress, then confirms it loaded
View Details
Opens the extension's page so you can read about it first
Maybe Later
Reminds you once after 7 days
Don't Show Again
Never recommends it automatically again
Nothing is ever installed without your click.
Not annoying by design
TOML Companion remembers your answers across restarts:
At most one notification at a time, even when you open many TOML files.
At most one automatic recommendation per day.
A file that already triggered a recommendation never triggers another.
If you installed an extension through TOML Companion and later uninstalled it, it will not be recommended again.
Commands
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):
Command
Description
TOML Companion: Check TOML Support
Shows which extension provides TOML support, or offers to install one, even if you dismissed it before
TOML Companion: Reset Recommendation History
Forgets all your previous answers
TOML Companion: Show Log
Opens the TOML Companion output channel
Privacy
TOML Companion never reads the contents of your files. It only looks at file names and language modes.
It sends nothing anywhere. Your answers are stored locally in VS Code's own extension storage.
The only network activity is the extension install that you start yourself, done by VS Code.
Good to know
TOML Companion registers the toml language for .toml files, so they show as TOML in the status bar and appear in the language picker. It adds no colours itself; that is what the recommended extension is for.
VS Code does not tell extensions about disabled extensions. If Even Better TOML is installed but disabled, TOML Companion may still recommend it. Clicking Install then tells you it is installed but not active, and offers to open its page so you can enable it.
Feedback
Found a bug or have an idea? Post it in the Q & A tab of this extension's Marketplace page. Running TOML Companion: Show Log and including the log helps.
License
MIT. The full text is included with the extension.