Effortlessly converts non-ASCII characters in JSON files to Unicode escape sequences.
Perfect for developers who need to ensure Unicode compatibility in their JSON files.
✨ Features
🔠 Converts all non-ASCII characters in JSON files to Unicode escape sequences.
📂 Supports multiple JSON files and processes them in their entirety.
⚡ Easy-to-trigger command from the Command Palette and Context Menu (File Explorer).
🔔 Provides user notifications for conversion success or errors.
📥 Installation
Open the Extensions view in Visual Studio Code (Cmd+Shift+X or Ctrl+Shift+X).
Search for CodeMorph and click Install.
Once installed, the extension is ready to use!
🚀 Usage (Active File)
Open any JSON file in VS Code.
Press Cmd+Shift+P (or Ctrl+Shift+P on Windows/Linux) to open the Command Palette.
Type CodeMorph: Convert to Unicode Sequences (Active File) and select the command.
The extension will scan your JSON file and convert all non-ASCII characters to Unicode escape sequences.
💡 Example
Before:
{
"message": "Bonjour, ça va bien?"
}
After running Escape Unicode Sequences:
{
"message": "Bonjour, \\u00e7a va bien?"
}
🚀 Usage (Multiple Files)
Easily apply Unicode conversions across all selected JSON files from the file explorer with a single command!
Select all the JSON files you want to convert from the File Explorer.
Right Click to open the Context Menu and select CodeMorph: Convert to Unicode Sequences (Selected Files) option.
And see the magic happens! 🪄
📜 License
This project is licensed under the MIT License. See the LICENSE file for more details.