Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Narrow SearchNew to Visual Studio Code? Get it now.
Narrow Search

Narrow Search

Mitchell Kember

|
34 installs
| (1) | Free
Provides a command to narrow searches
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code: Narrow Search

A simple VS Code extension that narrow searches.

This extension may be useful if you often find yourself editing the "files to include" field in the Search view.

Install

Get Narrow Search on the Visual Studio Marketplace.

Commands

  • Narrow Search: Current Directory: Narrows to the current file's directory
  • Narrow Search: Choose Preset: Narrows to a preset filter

Narrowing the search directory also clears the search field. The VS Code Extension API does not provide a way out of this. However, you can retrieve the previous search by pressing the up arrow key.

Configuration

Use narrowSearch.presets to configure presets for the "Narrow Search: Choose Preset" command.

License

© 2023 Mitchell Kember

VS Code Narrow Search is available under the MIT License; see LICENSE for details.

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