DuplicateFinderJS
A Visual Studio Code extension that detects and highlights duplicate code patterns in JavaScript files.
Features
- Real-time duplicate code detection in JavaScript files
- Workspace-wide scanning capability
- Status bar integration for quick access
- Automatic background scanning with smart debouncing
- Visual highlighting of duplicate code segments
- Support for functions, class methods, and object methods
Installation
- Open VS Code
- Press
Ctrl+P to open the Quick Open dialog
- Type
ext install duplicatefinderjs to find the extension
- Click Install
Usage
The extension activates automatically for JavaScript files. It provides:
- Click the search icon in the status bar to manually scan for duplicates
- Automatic scanning when files are modified
- Warning diagnostics for detected duplicates
- Hover over highlighted duplicates to see details
Requirements
- Visual Studio Code version 1.96.0 or higher
- JavaScript files in your workspace
Extension Settings
Currently, this extension uses default settings with:
- Auto-scan interval: 2 seconds
- Minimum code length for duplicate detection: 20 characters
Known Issues
Check the issue tracker for known issues.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.
Release Notes
0.0.1
Initial release of DuplicateFinderJS:
- Basic duplicate code detection
- Real-time scanning
- Status bar integration
- Workspace-wide scanning support
| |