Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>gouseNew to Visual Studio Code? Get it now.
gouse

gouse

looshch

|
61 installs
| (3) | Free
Toggle ‘declared and not used’ errors in Go
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

gouse-vsc

Toggle ‘declared and not used’ errors in Go by using idiomatic _ = notUsedVar and leaving a TODO comment. a demo gif

Quick fix

quick fix demo

One-Click Install

one-click install demo

Context Menu

context menu demo

Source Action

source action demo

Available on Visual Studio Marketplace and Open VSX Registry.

Dependencies

gouse is required.

go install github.com/looshch/gouse/v2@latest

Usage

“gouse: Toggle ‘declared and not used’ errors” command toggles the errors in a file.

The extension adds a light-bulb quick fix that runs gouse for the current file.

You can also run the same fix from the editor right-click context menu or from the editor Source Action menu as source.fixAll.gouse.

If gouse is missing, the extension can offer a one-click install. That still requires the Go toolchain to be available on your PATH.

If gouse is installed somewhere non-standard, set gouse.path in VS Code to point to the executable.

By default, if gouse.path is empty and gouse is already installed, the extension also tries to update gouse to the latest version in the background on startup. You can disable this with gouse.autoUpdateOnStartup.

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