This project provides a curated configuration snippet for the file-nesting feature of Visual Studio Code, authored by Anthony Fu (antfu). The goal is to help developers organize large code-bases by collapsing “secondary” or generated files (for example build artifacts, tests, config variants) under their primary files in the Explorer tree. It supports VS Code version 1.67 and above by enabling the built-in "explorer.fileNesting" setting. It is somewhat opinionated, offering a broad list of patterns (for example hiding .env.*, *.freezed.dart, etc) and it also includes an optional VS Code extension to automatically update the nesting config from the repo. Because the snippet is generated via a script (update.mjs), it is maintained for many languages, frameworks, and file types. The benefit is much cleaner project file trees, reduced noise, easier navigation, and less time wasted hunting through duplicate or generated files.
Features
- Enables file-nesting in VS Code via "explorer.fileNesting.enabled": true
- Provides comprehensive .patterns for grouping related files (config variants, built files, tests)
- Supports automatic updates via an extension that pulls the latest config for you
- Opinionated and community-maintained patterns covering many languages/frameworks
- Works via simple copy-paste snippet into settings or via the extension
- Licensed under MIT, open source and easily fork-adaptable