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

Quick fix

One-Click Install


Source Action

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.