Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Scope FocusNew to Visual Studio Code? Get it now.
Scope Focus

Scope Focus

QuarticCat

|
68 installs
| (0) | Free
Yet another implementation of IntelliJ's scopes
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Scope Focus

When you work on a large repo, it's often desired to focus on a subset of files. This extension lets you switch between 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.

Features

  • Create scopes.
  • Switch between them.

Extension Settings

These settings should go to workspace-level, i.e., .vscode/settings.json.

  • 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
        }
    }
}

Known Issues

  • This extension works by changing the workspace-level files.exclude setting. Yours will be overwritten.
  • Currently it doesn't support multi-root workspaces. File an issue if you need this feature.

Alternatives

  • Project Scopes
  • Folder Scopes

Release Notes

0.1.1

Avoid creating .vscode/settings.json.

0.1.0

Basic implementation.

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