Skip to content

Toggle ‘declared and not used’ errors in Go in Visual Studio Code.

Notifications You must be signed in to change notification settings

vipkek/gouse-vsc

Repository files navigation

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.

About

Toggle ‘declared and not used’ errors in Go in Visual Studio Code.

Resources

Stars

Watchers

Forks