Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Convert to TOMLNew to Visual Studio Code? Get it now.
Convert to TOML

Convert to TOML

jonathanmh

|
77 installs
| (0) | Free
Converts inferior formats to toml
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode to TOML

This extension converts files to toml (if possible).

Currently supported source file formats:

  • JSON
  • YAML

Example

If you currently have a file open that contains for example yaml, you can hit CTRL+SHIFT+P and start typing to TOML (casing does not matter).

It will turn a file like this:

jobs:
  job1:
    steps:
      - checkout
      - run: "execute-script-for-job1"

into

[jobs.job1]
steps = ["checkout",{"run":"execute-script-for-job1"}]

Please make sure to do this with version controlled files as part of planned refactors as it will replace the content of your current file.

Download:

  • https://marketplace.visualstudio.com/items?itemName=jonathanmh.vscode-to-toml

Usage

Hit CTRL + SHIFT + P and type: to toml when editing JSON file to replace it with TOML. Careful, this is a destructive operation.

Credits

Even though misguided in the adoption of yaml, my colleague @hilleer has created a plugin for converting between yaml and json, which made the development of this extension way easier: hilleer/vscode-yaml-plus-json

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft