Knip VS Code ExtensionThe usual suspects like red squiggles for unused exports are there. What really moves the needle for DX with Knip's module graph is navigation. A completely unique way to view & fly through codebases for developers who care. Connect the dots during development and refactors, while keeping things in check. We're starting out with 3 key features:
About KnipThis extension is powered by Knip. Find unused files, dependencies, and exports in your JavaScript/TypeScript projects.
Features
MCP ToolsThe extension provides MCP tools for coding agents:
In other words, you can tell your coding agent to "configure knip" and it will
RTFM so you don't have to. Using a newer model results in an optimized
ScreenshotsLint Problems
Imports & Exports
ContentionThe IDE extension shows extra issues in the tree views like circular dependencies. We're starting out with some extra novelties like conflicting and branched/diamond-shaped import chains. Circular DependenciesIf an import is part of a circular dependency, Knip will display:
ConflictsTypeScript shows direct conflicts when importing or re-exporting the same named export from different files. Except when the problem is more subtle and the chain spans more than one file. Knip warns:
BranchingBranched or diamond-shaped imports chains indicate unnecessary re-exports and complexity. They help to untangle large codebases and shrink or get rid of barrel files. Knip warns:
VS Code Extension Settings
|





