TOON converter is a Visual Studio Code extension that allows you to easily convert between JSON and TOON formats directly within the editor. It provides commands to convert entire files or selected text, making it simple to work with TOON data in your development workflow.
Features
Convert JSON to TOON: Use the command palette or right-click context menu to convert JSON files or selected text to TOON format.
Convert TOON to JSON: Convert TOON files or selected text to JSON format.
Context Menu Integration: Right-click on a text selection to access conversion commands.
Usage
Convert entire file: Open a JSON or TOON file, then use the command palette (Ctrl + shift + P):
JSON to TOON
TOON to JSON
Convert selection: Select text, right-click, and choose:
Convert selection to TOON
Convert selection to JSON
Installation
Clone the repository:
git clone https://github.com/cmhernandezdel/toon-vscode.git
cd toon-vscode
Install dependencies:
npm install
Running Locally
To run and test the extension locally:
Open the project folder in VS Code.
Press F5 to launch a new Extension Development Host window.
Open a JSON or TOON file, or select text, and use the command palette (Ctrl+Shift+P) or right-click context menu to access conversion commands.