Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>VK Code Sentinel - Dead Code ExpertNew to Visual Studio Code? Get it now.
VK Code Sentinel - Dead Code Expert

VK Code Sentinel - Dead Code Expert

KALEESWARAN V

|
4 installs
| (0) | Free
High-performance dead code detector with full support for React, Next.js. Detects unused imports, variables, and exports with zero false positives.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VK Code Sentinel - Dead Code Expert (v0.0.3)

License: MIT Marketplace

VK Code Sentinel is a high-performance, expert-grade static analysis tool for VS Code. It proactively scans your project to detect and highlight Dead Code (unused imports, variables, functions, and exports) with zero false positives.

Engineered specifically for modern web development, it provides Full Support for Next.js and React, ensuring your code remains lean and efficient without getting in the way of framework magic.


🚀 Key Features

💎 Full Support for React & Next.js

Sentinel understands the architecture of modern frameworks:

  • Next.js App & Pages Router: Automatically detects and protects entry-point exports (page.tsx, layout.tsx, route.ts, middleware.ts).
  • Framework Keywords: Intelligent bypassing for Next.js keywords like metadata, viewport, generateMetadata, revalidate, and more.
  • Hook Destructuring: Correctly tracks variables used in React Hooks (e.g., const { id } = params or const [state, setState] = useState()).
  • Component Detection: Automatically recognizes and protects React Components (PascalCase exports) in React projects.

⚡ Ultra High-Speed Analysis

Built for large-scale production codebases:

  • Local-First Strategy: Uses an ultra-fast identifier search for local variables.
  • Parallel Processing: Scans your entire project using a parallel worker architecture (15+ files at once).
  • Project-Wide Export Checking: Accurate cross-file analysis to find unused exports without lag.

🔘 Toggle Control (Enable/Disable)

  • Status Bar Integration: A dedicated button in the bottom-right corner to toggle the sentinel ON or OFF instantly.
  • Instant Cleanup: Disabling the extension immediately clears all highlights from your workspace.

🛠 Smart Detection

  • Unused Imports: Detects Named, Default, and Namespace (import * as) unused imports.
  • Project Detection: Automatically detects project type (Next.js, React, Angular, Vue, or Vanilla) via package.json.
  • Path Alias Support: Automatically reads tsconfig.json or jsconfig.json to resolve @/ path aliases.

⚙️ Configuration

Customize the sentinel in your settings.json:

{
  "deadCodeDetector.enabled": true,
  "deadCodeDetector.severity": "Error"
}
Setting Type Default Description
deadCodeDetector.enabled boolean true Master toggle to enable or disable analysis.
deadCodeDetector.severity enum "Error" Choose between "Error" (Red underline) or "Warning" (Yellow underline).

🕹 Commands

  • Analyze Code (VK Sentinel): Manually trigger a full-project re-scan.
  • Toggle VK Sentinel: Instant switch to enable or disable the extension.

📥 Installation

  1. Search for VK Code Sentinel in the VS Code Marketplace.
  2. Click Install.
  3. Open any project, and look for the eye icon in the status bar to see Sentinel in action!

📄 License

This project is licensed under the MIT License. Developed with ❤️ for the developer community.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft