Rory Becker - DevExpress CodeRush Blog

CodeRush for Roslyn: Quick File Nav

Quick File Nav is the fastest way to locate any file in your solution. All you need to know is part of the name of the file you’re looking for.

Usage

The default shortcut for Quick File Nav is Ctrl+Alt+F. Once triggered, you’ll see the following screen:

image

[Tip: If you’d prefer to use another shortcut, you can customize this in the Options dialog (Ctrl+Shift+Alt+O) on the shortcuts page (IDE\Shortcuts) in the Navigation section.

If you begin to type the name of a file, then the list will be filtered to show only those items whose name contains the characters you type.

Let’s suppose you have been working in the OpenLiveWriter solution, and that this time you are looking for a File whose name contains the word ‘Helper’. See below how I have typed the word ‘Helper’ into the search box. CodeRush Immediately locates those files with the word ‘Helper’ in their names.

image

See once again, how all the pertinent details are provided. Each file’s Name is accompanied by it’s Project and File Type. If a file does not reside in the root of it’s project, then the Folder name also provided. Your search term (In this case ‘Helper’) is highlighted within each item, indicating which part of the item qualified it to be in the list.

You can use the Arrow keys to navigate through the items presented in the list. Once you’ve found the item you require, press Enter and the file will be opened for you in the editor.

Camel Case Searching

Imagine I need to find one or more files whose name Starts ‘CommandLine’. Well I could certainly type all 11 characters, but I could also use Camel Case Searching to help ease things. By typing just ‘CL’ in upper case, I can instruct CodeRush to search for files whose name contains a capital ‘C’ followed (at some point) by a capital ‘L

image

See how the first couple of entries shown, are ones which contain the capital letters ‘C’ and ‘L’ in that order, even though they may be separated by several other characters. Additionally CodeRush shows other files containing the sequence ‘cl’ just in case you were looking for any of those.

Options

If you tap Ctrl, you’ll reveal options allowing you to chose between displaying (A)ll files, or just those which are (O)pen.

image

So use Ctrl+Alt+F to launch Quick File Nav and Jump to any file in your solution instantly.

.. and feel free to leave us your feedback to indicate how we might improve this and other features.

Published Apr 28 2016, 04:01 PM by
Bookmark and Share

Comments

Marc Greiner (DevExpress MVP)

How I love this short cut! I use it all the time!

You should copyright it!

Microsoft will then only be able to include it in Visual Studio 2116!

May 3, 2016 4:29 AM
LIVE CHAT

Chat is one of the many ways you can contact members of the DevExpress Team.
We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.

If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

FOLLOW US

DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

Copyright © 1998-2017 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners