Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Go GrammarNew to Visual Studio Code? Get it now.
Go Grammar

Go Grammar

Danny McGee

|
13,554 installs
| (2) | Free
A detailed TextMate grammar for Go
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Go Grammar

This extension provides a highly detailed VSCode TextMate grammar for Go. The TextMate scopes are mostly borrowed from Microsoft's TypeScript grammar, so it should work out-of-the-box with your favorite theme.

Dark+ Material One Dark Pro

Do note that some of the highlights aren't quite right due to the limits of TextMate's grammar format (and the limits of my patience 🙂), particularly around variables vs packages vs types. If this sort of thing bugs you as much as it bugs me, you can install my patched version of gopls to fix it.

Summer Vacation (grammar only) Summer Vacation (semantic tokens)

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft