Go Runner for VS Code
Simple, fast, and configurable execution of Go files directly from VS Code.
🚀 Features
- One-Click Run: Execute the current Go file via the sidebar button or command palette.
- Configurable: Set custom
go binary path and runtime arguments.
- Terminal Integration: reuses the "Go Runner" terminal to keep your workspace clean.
- Theme Aware: Seamlessly integrates with your VS Code theme.
⚙️ Configuration
You can configure the extension in your settings.json:
| Setting |
Default |
Description |
goRunner.goPath |
"go" |
Path to the Go executable. Use this if Go is not in your system PATH. |
goRunner.runArgs |
[] |
Array of additional arguments to pass to go run. Example: ["-v", "-race"]. |
⌨️ Commands
Go Runner: Run Go File (go-runner.runGo): Runs the currently active Go file.
📦 Installation
- Open VS Code.
- Search for "Go Runner" in the Extensions view.
- Click Install.
🔧 Requirements
- Go must be installed and available in your PATH (or configured via
goRunner.goPath).
🤝 Contributing
Contributions are welcome! Please visit the GitHub repository for more information.
📄 License
MIT
| |