You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
If you are experiencing issues with syntax highlighting, first check if you
are using semantic highlighting. In case you did not enable semantic highlighting,
report the issues to the go-syntax
project directly.
Code formatting by this extension doesn't seem to work.
When you have multiple formatter extensions, be sure to set this
extension as the default formatter for go language.
"[go]": {"editor.defaultFormatter": "golang.go"}
How can I stop the extension from formatting files on save?
Formatting and organizing imports for Go are enabled by default. This is implemented
by setting the language-specific editor settings, that take precedence
over user/workspace editor settings.
You can choose to disable them by configuring the following settings.
This decision was made a while ago to help users follow the best practice,
and to detect broken code early (e.g. unused imports causes compile errors in Go).
Unfortunately, these language-specific editor settings overriden by the
extension is not easily visible from the settings UI, and confuses users new to Go.
In the following issues, we are discussing and collecting ideas to improve
the situation without interrupting existing users.