The extension provides a functionality to run a custom format for Go codes.
- The extension doesn't come with any formatter. A format tool needs to be installed and configured to make it work.
This extension contributes the following settings:
goCustomFormat.onSave: To format codes before saving.
goCustomFormat.fmtCmds: To configure the format commands. For example:
The extension also provides several commands in the Command Palette for working with Go files:
Run custom format: To format the current file.