This VS Code extension folds dependency entries inside package.json when consecutive packages share the same prefix, making long dependency lists easier to scan.
Examples:
@types/node,@types/react-> grouped by@types/react-dom,react-pdf,react-router-dom-> grouped byreact-
Screenshots
Auto-fold matching dependency prefixes

Fold scoped packages such as @types/*

Show hidden count inline for each folded group

Features
- Automatically scans common dependency sections such as
dependenciesanddevDependencies - Adds custom folding ranges for prefix groups
- Automatically folds matching groups when a
package.jsonfile is opened - Shows an inline badge with the hidden package count for each folded group
- Supports both scoped prefixes like
@types/and unscoped prefixes likereact-
Commands
Package.json Prefix Fold: Fold Current FilePackage.json Prefix Fold: Unfold Current File
Settings
packageJsonPrefixFolder.enabledpackageJsonPrefixFolder.autoFoldOnOpenpackageJsonPrefixFolder.minimumGroupSizepackageJsonPrefixFolder.unscopedPrefixSegmentspackageJsonPrefixFolder.sectionspackageJsonPrefixFolder.showInlineBadge
Notes
- Scoped packages are grouped by scope, for example
@types/. - Unscoped packages are grouped by the configured number of dash-separated segments.
- VS Code does not currently expose exact manual fold state to extensions, so the inline count is synchronized with folds triggered automatically by the extension or through the extension commands.