Enable Normalized Detection
Detect near-duplicates by normalizing comments, literals, and identifiers
Duplicate Detection + Refactor Assistant for VS Code
Scans JS/TS workspaces, publishes duplicate diagnostics, and offers exact-match quick fixes.
The Problem
Copy-paste logic spreads across files with no visibility.
Small fixes must be repeated in many places.
Near-duplicates hide behind renamed variables and literals.
Refactors happen late, usually after review feedback.
Diagnostics highlight exact and normalized duplicate clusters.
Problems panel links related duplicate occurrences.
Quick Fix extracts exact duplicates to reusable functions.
DRY Report exposes score, top clusters, and hotspots.
Features
Runs on startup and refreshes on edit/open/save/create/delete/rename/config changes.
Publishes exact duplicates as warnings and normalized duplicates as info in Problems.
Each diagnostic includes related occurrences so you can jump across files quickly.
Matches strict duplicates plus near-duplicates by normalizing comments, literals, and identifiers.
Shows project score, top duplicate clusters, and duplication hotspots by file.
Open settings webview, toggle normalized detection, scan now, or reset defaults directly.
Extract duplicate to function or move duplicate to shared util for exact clusters.
Use Cases
When fetch and validation logic gets copied across files
When JSX blocks repeat with only small prop or text changes
When guard clauses and handlers are duplicated everywhere
When utility logic drifts into multiple modules
When you want duplicate clusters surfaced before review
When repeated logic should become one shared abstraction
Settings UI
Same controls, ranges, and workflow as the extension webview.
Enable Normalized Detection
Detect near-duplicates by normalizing comments, literals, and identifiers
Min Lines
4Minimum block size to consider as duplicate
Max Lines
12Maximum block size scanned per window
Exclude Glob
activeSkip generated/output folders during workspace scans
Excluded Paths
"Copy-paste happens.
DRY helps you refactor before debt compounds."