Unwanted Code RemoverDetects unused variables, imports, and functions in your project — and removes them only after you give permission. Works across multiple languages by reading the diagnostics that VS Code's built-in language servers and popular linters (TypeScript, ESLint, Pylint/Pyflakes, Java, C#, Go) already produce. Features
How detection worksThis extension does not reimplement a parser for every language. Instead it reads diagnostics already reported by:
➡️ Make sure the relevant linter/language server is installed and active for a given language, otherwise this extension won't detect anything for that file (it has nothing to read). Known limitationRemoval works by deleting the entire line containing the unused declaration. This is reliable for the common case (one import/variable/ function per line) but will not gracefully handle multiple declarations packed on a single line — review the diff before saving if your code style does that. Try it locally before publishing
Then in VS Code: Publish to the Marketplace
(Requires a free publisher account — see Marketplace publisher management page.) |