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

gouse

looshch

|
48 installs
| (2) | 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

Dependencies

gouse is required.

go install github.com/looshch/gouse@latest

[!CAUTION]

Non-stable (archived) Go versions require older gouse version.

Go version gouse version
1.21.0+ 1.3.0+
1.18–1.20.14 1.2.3

Usage

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

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