
Get Unused
Imports
A VS Code extension to detect unused imports, variables, and parameters in your codebase. Built with Go (WASM) for high performance.
Features
Everything You Need to Keep Your Code Clean
Multi-language Support
TypeScript, JavaScript, Python, Go, Ruby, PHP
Auto Analyzer
Automatically analyzes files on save and when TreeView is opened
Tree View
Results displayed in Explorer sidebar
High Performance
Go backend compiled to WebAssembly with intelligent caching
Quick Navigation
Click to jump to unused code
Customizable
Configure file extensions, exclude folders, and auto-analyze delay
Supported Languages
| Language | Extensions | Backend |
|---|---|---|
| TypeScript | .ts, .tsx | Native (ts-morph) |
| JavaScript | .js, .jsx, .vue, .svelte | Native (ts-morph) |
| Python | .py | WASM (go-python) |
| Go | .go | WASM (go/parser) |
| Ruby | .rb | WASM (regex-based) |
| PHP | .php | WASM (regex-based) |
Installation
1. Open VS Code
2. Go to Extensions (Cmd+Shift+P → "Extensions: Open")
3. Search for "Get Unused Imports"
4. Click Install
Settings
| Setting | Default | Description |
|---|---|---|
| get-unused-imports.autoAnalyzer | true | Automatically analyze on save |
| get-unused-imports.autoAnalyzeDelay | 500 | Delay in ms before auto-analyzing |
| get-unused-imports.fileExtensions | ["ts", "tsx", ...] | File extensions to scan |
| get-unused-imports.excludeFolders | ["node_modules", ...] | Folders to exclude |