IDE Support
IDE Support
This project provides a VSCode extension vscode-zml, which supports ZML language syntax highlighting and code formatting, greatly improving the experience of writing ZML configurations.
Features
- Syntax Highlighting: Supports highlighting of keywords, built-in types, HTTP methods, comments, strings, etc.
- Code Formatting: Supports automatic indentation, smart comma handling, configurable line width and indentation size.
- Auto Closing: Supports automatic closing of brackets and quotes.
Installation and Usage
The extension source code is located in the plugin/vscode-zml directory.
Build the Extension:
Enter the plugin directory and install dependencies:cd plugin/vscode-zml npm install npx @vscode/vsce packageThis will generate a
.vsixextension file.Install the Extension:
Open the Command Palette in VSCode (Windows/Linux:Ctrl+Shift+P, macOS:Cmd+Shift+P), type and selectExtensions: Install from VSIX..., then select the.vsixfile generated in the previous step.Run in Development Mode:
If you want to debug the extension, you can launch VSCode in development mode using the following command:code --extensionDevelopmentPath ./plugin/vscode-zml
Once installed, open any .zml file to automatically activate the extension and enjoy syntax highlighting and formatting features.