Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Open File From Directory
Open File From Directory

Open File From Directory

Borislav Stanimirov

|
1,033 installs
| (1) | Free
Opens a list of files in the current directory and allows filtering and quick open in the style of Visual Studio Code's Ctrl-P
Download

Opens a filterable list of files of the current directory (the opened directory, or the directory of the solution). Allows filtering and quick open in a manner similar to Ctrl-P in Visual Studio code.

VIsual Studio does support quick file opening (Ctrl+, f) but it has several limitations: performance, solution-only binding, and no filters. This extention is faster, works at directory level and allows filtering of files and folders.

It's especially useful in two cases:

  • If you open directories instead of solutions
  • If you do open solutions but there are many files, which are not part of the solution which you also need to open often (say configurations, assets, and more)

Usage

Install and open: Tools > Open File from Directory. This will open a window in which you can type to receive a filtered list of the top matches of files in the current directory.

Press Up or Down to select a file from the filtered list.

Press Enter to open the selected file.

Press Escape to cancel.

It is recommended that you bind Tools.OpenFileFromDirectory to Ctrl-P

Preview

preview__1.png

Configuration

The extension tries to read VSOpenFileFromDirFilters.json from the root directory. If it exists, the extension looks for keys "dirs" and "files" inside and loads filters from there. Those filters are directories and files to be ignored.

Example configuration:

{
    "dirs": [".git", ".vs", "out", "bin", "obj"],
    "files": ["*.tar", "*.zip"]
}

These filters will ignore all files which are in subdirectories .git, .vs, out, bin, and obj. And all files with extensions .zip and .tar

Default configuration

If there is no configuration file provided, the ignored directories are .git and .vs, and the ignored files are *.sln

License

This is an open source extension under the MIT license.

You can find its repository on GitHub

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