The requested page is not available for the requested platform. You are viewing the content for Default platform.

Search for a Code Symbol

  • 3 min to read

CodeRush provides the Jump to Symbol window that allows you to navigate to an identifier from any code place.

TS

This feature works in C#, Visual Basic, TypeScript, and JavaScript code.

  • Invoke the Jump to Symbol window.

    Use one of the following ways:

    1) The Ctrl + Shift + Q shortcut in the code editor.

    2) The CodeRush | Navigate | Jump to Symbol... menu item.

    Symbol

    3) The NumPad Plus Enter shortcut in the code editor.

    To enable this shortcut: choose CodeRush | Setup Wizard... menu item to invoke the CodeRush Setup wizard, and enable the Add Numeric Keypad Bindings option on the Numeric Keypad Bindings page.

    Nav

  • Type a symbol's name or a part of it in the search field.

    CodeRush filters the search result list dynamically as you type in the Jump to Symbol window.

    CRR_Nav_QuickNav_input

    CodeRush can search for a symbol using two or more parts of a symbol's name. Type, for example, "CoSe" in the search field. CodeRush splits the search string and applies heuristic matching. The search is a case-insensitive, so there is no difference between "CoSe" and "cose".

    Split

  • Use the mouse or arrow keys to select an item in the search result list.

    CRR_Nav_QuickNav_input

  • Double-click the item or press Enter.

    CodeRush closes the Jump to Symbol window and moves the caret to the identifier declaration.

    Result

View Search Results in the References Window

  • Invoke the Jump to Symbol window in the code editor (see the section above on how to do it).

  • Type a symbol's name or a part of it in the search field.

  • Click the "Display data in a separate window" button.

    CRR_Nav_QuickNav_input

    CodeRush closes the Jump to Symbol window and displays the search results in the References window.

  • Select the item in the search result list. CodeRush navigates to the identifier declaration in the code editor.

    CRR_Nav_QuickNav_input

    Note

    When the References window is opened, press F8 to jump to the next item and press Shift + F8 to jump to the previous item.

Filter Search Results

Press the Ctrl key to switch to filter mode in the invoked Jump to Symbol window.

CRR_Nav_QuickNav_filter

Note

Press Ctrl again to get back to the search mode.

You can filter the search result list by the following criteria:

  • Scope

    Possible values: solution, project, namespace, and file.

  • Types

    Possible values: class, struct, interface, enumeration, and delegate.

  • Members

    Possible values: methods, properties, events, fields, and variables.

  • Access modifier

    Possible values: private, public, protected, internal/friend, and protected internal/friend.

Use the mouse or corresponding keyboard shortcuts listed in the menu to change options.

Specify a Default Filter

You can specify a default filter for the Jump to Symbol window that CodeRush uses to filter search results. Refer to Specify a Default Filter for the Jump to Symbol Window for more information.

Options

You can customize the Jump to Symbol window in the Navigation | General options page.

NavToolsOptions

For more information, see Navigation Tools Options.

See Also