https://github.com/ibob/vsopenfilefromdir
VSCode-style open file (ctrl-p) functionality for Visual Studio
https://github.com/ibob/vsopenfilefromdir
Last synced: 5 months ago
JSON representation
VSCode-style open file (ctrl-p) functionality for Visual Studio
- Host: GitHub
- URL: https://github.com/ibob/vsopenfilefromdir
- Owner: iboB
- License: mit
- Created: 2020-01-24T18:02:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-09T06:57:59.000Z (almost 2 years ago)
- Last Synced: 2025-01-01T01:50:23.389Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 132 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VSOpenFileFromDir
A plugin for Visual Studio which allows to quickly open a file from a directory (typically the solution root directory) by applying a filter.
It works much like Visual Studio Code's Ctrl-P quick open functionality.

## Usage
* Tools > Open File from Directory
* It is recommended that you bind `Tools.OpenFileFromDirectory` to Ctrl-P
* Type to filter files from the directory
* Press Up or Down to select a file from the filtered list.
* Press Enter to open the selected file.
* Press Escape to cancel.
## 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`
There is also an example configuration file in this repository which his suitable for .NET projects
## Default configuration
If there is no configuration file provided, the ignored directories are `.git` and `.vs`, and the ignored files are `*.sln`
## Intallation
[Download](https://marketplace.visualstudio.com/items?itemName=ibob.OpenFileFromDir) from the Visual Studio Marketplace
## Roadmap
These features are planned for the near future:
* Match Visual Studio's current style
## License
MIT. See accompanying LICENSE file