English | 简体中文
This plugin can be installed on Visual Studio Code version 1.46.0+. First make sure your version of Visual Studio Code meets the requirements and that the goctl
command line tool is installed. If Visual Studio Code is not installed, please install and open Visual Studio Code. Navigate to the Extensions pane, search for goctl
and install this extension (publisher ID is "xiaoxin- technology.goctl").
Please refer to here for Visual Studio Code extension usage.
Note: If the shell you are using is fish
, the $PATH
environment variable is configured in fish
, which may cause the $PATH
in vscode to be inconsistent with the $PATH
in Terminal, please refer to: PATH issues with Fish shell on macOS.
Implemented functions
- Syntax highlighting
- Jump to definition/reference
- Code formatting
- Code block hinting
No implemented:
- Syntax error checking
- Cross-file code jumping
(Jump to definition/reference)
The code formatting function will invoke the goctl command line formatting tool. Make sure goctl is added to $PATH
and has executable permissions before using it.
If you encounter problems or have suggestions for improvement, please submit an issue by clicking here.