Rory Becker - DevExpress CodeRush Blog

April 2016 - Posts

  • 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.

  • CodeRush for Roslyn 1.0.11 is now available

    By now, CodeRush for Roslyn (CRR) preview version 1.0.10 will have expired.

    This can mean only one thing……..

    CRR version 1.0.11 is now available!!!

    Update: Release notes are available here

    PSA:
    --------------------------------------------
    However it appears that for the moment, for some people, Visual Studio is having difficulty locating extension updates.

    Normally the typical method of upgrading CRR would be

  • Let Visual Studio detect and notify you of said upgrade’s availability.
  • Allow Visual Studio to download and apply the upgrade.
  • However as we suggested, this isn’t working at the time of writing.

    Fear not dear developer, for we have you covered.

    If you visit the Visual Studio Gallery via this link, you will be able to download the upgrade directly from the gallery, and by-pass the issue currently stopping Visual Studio from assisting you in your upgrade.

    We are quite sure the Visual Studio will not have this issue for long, but we wanted to make sure that nothing stood between you and the latest version of CodeRush for Roslyn.
    --------------------------------------------

  • CodeRush for Roslyn: Quick Nav

    For those who don’t already know, Quick Nav is CodeRush’s Symbol Search.

    It’s what you use when you’re trying to find the declaration of some code element when you know part of it’s name.

    Usage

    The default shortcut for this feature is Ctrl + Shift + Q. Once triggered you’ll see the following screen:

    image[Quick Nav - Clean, Simple and Instant]

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

    For demonstration purposes I’ve loaded the source of OpenLiveWriter (A non trivial 27 project open source solution).

    Let’s assume you’ve been working on this project and now you need to find the ‘BrowseMiniForm’. The simplest approach is to type ‘Browse’ into the search panel. As you type, CodeRush presents and filters a list of matching symbols.

    image

    Note how CodeRush presents the results.

    Each symbol is listed with Name, Namespace, Project Name and File Type ensuring that when multiple similarly named symbols are found, there should be no confusion as to the nature of these items. Additionally note how within each item, the placement of your search term is indicated in red. In this case the word ‘Browse’ is lit up in red to show you the grounds on which it was included.

    In this case the item we were searching for, is immediately below the one highlighted.

    Use the Arrow keys to navigate to the next item and hit Enter to take you to the symbol’s declaration.

    Narrowing the Search

    The more you type the narrower the search. If you were to continue typing and change the text to ‘BrowseMini’ your results would be further limited.

    image

    In this case only 2 Items are found making your chosen symbol even simpler to locate.

    Camel Case Searching

    If you don’t feel like typing all that text, then you can use Camel Case Searching to find the symbol you’re looking for.

    BrowserMiniForm’ (The Symbol we were looking for) is a symbol made from 3 words ‘Browser’, ‘Mini’ and ‘Form’. If you type the capitalized initial characters of these words, CodeRush understands that you’re looking for symbols containing these characters in that specific order.

    So if you enter ‘BMF’ into the search text, you get the same results as typing ‘BrowserMini’, but you’ve typed far less.

    image

    As before CodeRush uses red text to indicate the justification of each entry’s inclusion. This can help to alleviate confusion when more items are included than you were expecting.

    Show me the Options

    All examples used thus far have searched the entire solution, however you may also have noticed a note in the bottom left of our screen shots.

    If you tap Ctrl, you can change the default search options.

    If you do so, the screen will expand to show the following:

    image

    As you can see these options are arranges neatly into 4 groups: Scope, Types, Members and Access. All of the items within are used to influence the items that are shown (or not shown)

    Within Scope, the available items are Solution, Project, Namespace and File. Your choice of one of these restricts the symbols that are visible to Quick Nav relative to your current location.

    Any combination of Types, Members and Access may also be independently chosen to suit your needs.

    For those who prefer to keep their hands on the keyboard, these options may all be set/toggled using the indicated shortcut keys.
    (Scope:1, 2, 3, 4 Types: C, S, I, E, D Members: M, P, V, F and Access: W, O, N, T, B)

    For those who are happier to use the mouse the same options will react to a simple click.

    So use Ctrl+Shift+Q to launch Quick Nav and Jump to any symbol in your solution in seconds.

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

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