DeadCode++DeadCode++ is a VS Code extension for detecting potentially unused code and dependency problems in JavaScript and TypeScript projects. DeadCode++ Explorer
It analyzes your project dependency graph and surfaces findings directly inside the VS Code Explorer. FeaturesUnused File DetectionDeadCode++ identifies files that are not referenced by other files in your project. Results are displayed directly in the Explorer sidebar. Unused Export DetectionDetect exported functions, variables, classes, and other symbols that are not imported elsewhere. DeadCode++ reports the export name, source file, and line number. Click a result to jump directly to the relevant source code. Circular Dependency DetectionDetect dependency cycles such as: A.ts → B.ts → C.ts → A.ts Circular dependencies are grouped into cycles in the DeadCode++ Explorer view. Import ResolutionDeadCode++ currently understands:
Framework AwarenessDeadCode++ includes framework-aware rules to reduce false positives in projects such as Next.js. Framework-managed files and exports are treated differently from ordinary application code where supported. Usage
Results are grouped into:
Click supported findings to navigate directly to their source file. You can also run:
from the VS Code Command Palette. ExampleDeadCode++ may produce results similar to:
Supported File Types
ImportantDeadCode++ performs static analysis. Some code may be referenced through runtime behavior, framework conventions, generated code, dependency injection, reflection, or other patterns that cannot always be determined through static analysis. For this reason, findings should be reviewed before deleting code. DeadCode++ does not automatically delete detected code. Current StatusDeadCode++ is currently in its initial More framework rules, import-resolution strategies, and analysis capabilities are planned for future versions. Feedback and IssuesIf you encounter a false positive or a project structure that DeadCode++ does not understand correctly, please report it through the project's issue tracker. These reports will help improve the analyzer. LicenseSee the LICENSE file for licensing information. |
