🚀 Scan Unused Code
Detect and remove unused code instantly in your project
Built for speed, accuracy, and developer productivity ⚡
✨ Features
🔍 Detect unused variables, functions, and imports
🧹 Remove unused code with one click
📂 Sidebar view of all unused items
⚡ Fast scanning using AST parsing
🔄 Real-time refresh of unused code
🧠 Works with:
- JavaScript
- TypeScript
- React (JSX/TSX)
⚡ Commands
| Command |
Description |
Remove Unused Line |
Removes selected unused line |
Remove All Unused Code |
Cleans entire file |
Refresh Unused List |
Rescans project |
Delete Unused |
Removes item from sidebar |
Remove All (Sidebar) |
Clears all unused items |
🧩 How It Works
Unused Code Finder uses AST (Abstract Syntax Tree) parsing to:
- Analyze your code structure
- Identify unused declarations
- Provide actionable cleanup options
👉 No regex hacks. Clean and accurate detection.
📦 Installation
- Open VS Code
- Go to Extensions
- Search:
Scan Unused Code
- Click Install
Or install directly from marketplace:
👉 https://marketplace.visualstudio.com/items?itemName=sunnymodi.scan-unused-code
⚙️ Requirements
- VS Code
^1.80.0 or above
- Works best with JavaScript & TypeScript projects
🐞 Known Issues
- Large files may take slightly longer to scan
- Complex dynamic imports may not always be detected
🗺️ Roadmap
- ✅ Auto-fix suggestions
- 🔜 Workspace-wide scanning
- 🔜 AI-based smart cleanup
- 🔜 Performance improvements
📝 Release Notes
1.0.0
- Initial release 🎉
- Unused code detection
- Sidebar integration
- Cleanup commands
🤝 Contributing
Contributions are welcome!
- Fork the repo
- Create a feature branch
- Submit a PR
👨💻 Author
Sunny Modi
- 💼 Frontend Developer
- 🚀 Building developer tools
- 🌐 Focused on productivity & clean code
⭐ Support
If you find this useful:
👉 Star the repo
👉 Share with other developers
👉 Leave a review on Marketplace
📜 License
MIT License
Made with ❤️ by Sunny Modi
| |