FastGoToFile
Visual Studio extension for quickly jumping to a file in the solution
This is a fork of the Open Now! Visual Studio extension by Ryan Gregg. Open Now! stopped working with Visual Studio 2019, and isn't very actively maintained, so I decided to make my own copy so I could start making tweaks and improvements.
So far, the changes from Open Now! are:
- Works with Visual Studio 2019
- Fixed many significant memory leaks
- Made numerous performance fixes
Extension Features:
- Open files in Visual Studio or view them in Windows Explorer.
- Open files from an optional user selectable directory.
- Force open files in code view (instead of designer view which some file types default to).
- Filter and sort by file name, file path, project name and project path.
- Filter using wildcards.
- Retain settings between uses.
- Fast responsive interface.
- Open complementary file for cycling between header/source, and other related files (this command is hidden by default).
- Open source.
Special Characters:
There are a number of special characters that can prefix search terms. You can string several special characters together to create more advanced terms. The actual search string starts after the first invalid special character or opening quote. These special characters are:
The ampersand (&) specifies that the search string should be combined with a logical "and". (Note, this is the default implicit behavior - you probably wont even need to type an ampersand).
The vertical bar (|) specifies that the search string should be combined with a logical "or".
The hyphon (-) and apostrophe (!) specify that the search string should be negated.
The backward slash () or forward slash (/) specify that the whole file or project path should be searched, not just the file or project name.
The colon (:) specifies that the project or project path should be searched and not the file name or file path.
The double quote (") can be used to surround the above special characters (or spaces) to effectively "escape" them.
The asterisk (*) can be used as a multi character wildcard.
The question mark (?) can be used as a single character wildcard.
Special Character Examples:
Example |
Description |
substring.cpp(row[,col]) |
Opens the selected file navigating to row/col. Useful for opening based on build break output |
substring.cpp:row[:col]) |
Opens the selected file navigating to row/col. |
substring .h |
Find all files containing substring in all .h files. |
substring |.cpp |.h |
Find all files containing substring in all .cpp and .h files. |
substring -.h |
Find all files containing substring in all files except .h files. |
substring -.cpp -.h |
Find all files containing substring in all files except .cpp and .h files. |
substring \\include\ |
Find all files containing substring in any folder called include. |
substring :"header files" |
Find all files containing substring in any filter containing header files. |
:substring |
Find all files in any project containing substring. |
substring *.h |
Find all files containing substring in all files ending in .h. |
FAQ
I've installed FastGoToFile, where can I find it?
By default, FastGoToFile will create a command called "Fast Go To File..." under your "Tools" menu. The default shortcut is Ctrl+Shift+Alt+O.
How can I change the shortcut to FastGoToFile?
To change the shortcut to FastGoToFile:
- Open Visual Studio.
- Select "Tools" then "Options...".
- Select "Environment" -> "Keyboard".
- Type "FastGoTo" under "Show commands containing:".
- Select "Tools.FastGoToFile".
- Press "Remove" to remove the old shortcut (commands can have multiple shortcuts).
- Type your new shortcut under "Press shortcut keys:".
a. Recommended shortcut is "Ctrl+Shift+Alt+O", which by default is bound to 'File.OpenFolder'
- Press "Assign" to add the new shortcut.
- Press "OK" then "Close".