Templ Project Golang Extension Pack
Essential Go development environment for VSCode - comprehensive tooling for modern Go development
📦 What's Included
This extension pack includes 9 carefully selected extensions to enhance your golang development experience in vscode.
✅ Core Extensions (2)
These extensions are essential for golang development:
- Go - Rich Go language support for Visual Studio Code
- Error Lens - Improve highlighting of errors, warnings and other language diagnostics
💡 Additional Extensions (7)
These extensions provide extra functionality and convenience:
🚀 Installation
Method 1: Install from Marketplace
- Open Vscode
- Go to Extensions view (
Ctrl+Shift+X
/ Cmd+Shift+X
)
- Search for "Templ Project Golang Extension Pack"
- Click "Install"
Method 2: Install via Command Line
code --install-extension @templ-project/golang-extension-pack
Method 3: Install from VSIX
- Download the latest
.vsix
file from Releases
- Open Vscode
- Run
Extensions: Install from VSIX...
command
- Select the downloaded file
⚙️ Configuration
After installation, you may want to configure some settings for optimal golang development:
go.useLanguageServer
"go.useLanguageServer": true
Use the Go language server (gopls) for enhanced features
"go.formatTool": "goimports"
Use goimports for formatting (handles imports automatically)
"go.lintTool": "golangci-lint"
Use golangci-lint for comprehensive linting
go.lintOnSave
"go.lintOnSave": "workspace"
Run linter on save for workspace files
go.vetOnSave
"go.vetOnSave": "workspace"
Run go vet on save for workspace files
go.buildOnSave
"go.buildOnSave": "workspace"
Build on save for workspace files
go.testOnSave
"go.testOnSave": false
Disable automatic test running on save (performance)
go.coverOnSave
"go.coverOnSave": false
Disable automatic coverage on save (performance)
go.gocodeAutoBuild
"go.gocodeAutoBuild": true
Enable automatic building for autocompletion
[go]
"[go]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"editor.tabSize": 4,
"editor.insertSpaces": false,
"editor.detectIndentation": false
}
Go-specific editor settings following Go conventions
[go.mod]
"[go.mod]": {
"editor.formatOnSave": true,
"editor.tabSize": 4,
"editor.insertSpaces": false
}
Go module file specific settings
[go.sum]
"[go.sum]": {
"editor.formatOnSave": false,
"editor.tabSize": 4,
"editor.insertSpaces": false
}
Go sum file specific settings (no formatting)
go.testFlags
"go.testFlags": [
"-v",
"-race"
]
Default flags for go test (verbose and race detection)
go.testTimeout
"go.testTimeout": "30s"
Test timeout duration
go.coverageDecorator
"go.coverageDecorator": {
"type": "gutter",
"coveredHighlightColor": "rgba(64,128,128,0.5)",
"uncoveredHighlightColor": "rgba(128,64,64,0.25)"
}
Test coverage visualization settings
⌨️ Recommended Keybindings
- Run tests in current package:
ctrl+shift+t
- Format Go code:
ctrl+shift+f
- Run tests in current file:
ctrl+shift+r
- Go to definition:
f12
- Find all references:
shift+f12
📝 Extension Details
Extension |
Publisher |
Description |
Go |
Go Team at Google |
Rich Go language support for Visual Studio Code |
Error Lens |
Alexander |
Improve highlighting of errors, warnings and other language diagnostics |
Go Outliner |
766b |
Go code outline explorer |
Go Test Explorer |
Prem Parihar |
Go Test Explorer for Visual Studio Code |
Go Fill Struct |
David Barratt |
Fill struct literals with default values |
Go Template Syntax Highlighter |
karyan40024 |
Go Template Syntax Highlighter for Reply |
Go Doc |
msyrus |
Show documentation of go symbols and packages |
Go Critic |
neverik |
Integration for the go-critic golang linter |
Go Asm |
quillaja |
Syntax highlighting & autocomplete for Go assembly |
🏷️ Categories
📄 License
Extension Pack License
This extension pack is licensed under the MIT License - see LICENSE.md for details.
Third-Party Extension Licenses
Important: Each extension included in this pack has its own license terms. templ-project is not responsible for the licensing, functionality, or security of third-party extensions.
Extension |
Publisher |
License |
Description |
Go |
Go Team at Google |
MIT |
Rich Go language support for Visual Studio Code |
Error Lens |
Alexander |
MIT |
Improve highlighting of errors, warnings and other language diagnostics |
Go Outliner |
766b |
MIT |
Go code outline explorer |
Go Test Explorer |
Prem Parihar |
MIT |
Go Test Explorer for Visual Studio Code |
Go Fill Struct |
David Barratt |
MIT |
Fill struct literals with default values |
Go Template Syntax Highlighter |
karyan40024 |
MIT |
Go Template Syntax Highlighter for Reply |
Go Doc |
msyrus |
MIT |
Show documentation of go symbols and packages |
Go Critic |
neverik |
MIT |
Integration for the go-critic golang linter |
Go Asm |
quillaja |
MIT |
Syntax highlighting & autocomplete for Go assembly |
Disclaimer
- We do not guarantee the functionality, security, or compatibility of included extensions
- We are not responsible for any issues caused by third-party extensions
- Users install and use extensions at their own risk
- Please review each extension's license and privacy policy before use
🤝 Contributing
Found an issue or want to suggest an extension? Please open an issue or submit a pull request.
📊 Extension Pack Stats
- Total Extensions: 9
- Required Extensions: 2
- Optional Extensions: 7
- Target IDE: vscode
- Language Focus: golang
This extension pack is maintained by templ-project and updated regularly to include the most useful golang development extensions.