When working on a large repo, it's often desired to focus on a subset of files. This extension lets you switch among predefined subsets (called "scopes") and hide rest files. It aims to provide a similar experience to IntelliJ's scopes.
You can consider it as a workaround of vscode#869.
scope-focus.activeScope
: Switch active scope. You can operate this on status bar as well.scope-focus.scopes
: Define scopes. Hover on settings to see details.Taking llvm-project as an example. If you want to focus on clang
and llvm
and then exclude cmake
sub-folders, you can configure like this:
{
"scope-focus.activeScope": "LLVM/Clang",
"scope-focus.scopes": {
"LLVM/Clang": {
"include": ["clang", "llvm"], // accept globs
"exclude": ["*/cmake"] // accept globs
}
}
}
files.exclude
setting. Yours will be overwritten.Avoid creating .vscode/settings.json
.
Basic implementation.