Back to Devexpress

Navigate To

coderushforroslyn-115798-navigation-and-search-tools-navigate-to.md

latest5.0 KB
Original Source

Navigate To

  • Jun 10, 2024
  • 3 minutes to read

CodeRush includes the Jump To window that allows you to navigate inside the code structure and particular code fragments. For instance, you can navigate to the class declaration, list interface implementations, etc.

This feature works in C#, Visual Basic, TypeScript, JavaScript, CSS, XAML, and Blazor code. The following screencast shows the Jump To window in Blazor:

How to Use

To invoke the Jump To window, use one of the following ways:

  • Place the caret in the identifier and press Ctrl + Alt + N.

  • Use the CodeRush | Navigate | Jump to.. menu item.

  • The Num Decimal shortcut in the code editor.

The set of available navigation providers depends on the identifier type. The table below lists navigation providers:

NameAvailabilityTarget
AssignmentsWhen the caret is in a property, field, local parameter or event declaration/referenceAny assignment of the variable
Base TypesWhen the caret is in a class, structure or enumeration declaration or referenceAny type in the inheritance chain
DeclarationWhen the caret is in any symbol referenceThe symbol declaration
Derived TypesWhen the caret is in a class or interface declaration or referenceAny type derived from the current one
Parent TypeAnywhere within the type (interface, class, structure or enumeration) blockThe declaration of the type at the caret’s location
MembersWhen the caret is in a type declaration, or anywhere within the type block (works for partial types)Any member of the current type
InstantiationsWhen the caret is in a class or structure declaration or referenceAny instantiation of the class/structure
ImplementationsWhen the caret is in an interface, abstract class declaration, abstract member or referenceAny implementation of the type or member
Implemented APIWhen the caret is in an interface or class declaration or referenceAny exposed member
OverloadsWhen the caret is in a method declaration or referenceAny overload of the member
OverridesWhen the caret is in a base class or an overridden member of the abstract or virtual classAny override of the member
Overridden Base MemberWhen the caret is in an overridden memberBase member overridden by the current one
ReferencesWhen the caret is in an identifierAny identifier
SymbolAnywhereAny symbol in the solution
FileEverywhereAny file in the solution
Open FileEverywhereAny opened file
XAML ElementEverywhereAny named element in your XAML code
EverythingEverywhereAny file or symbol in the solution

TypeScript Support

The Base Types , Derived Types , Members , Instantiations and Implementations navigation providers are also available in TypeScript code.

View Search Results in the References Window

  • Invoke the Jump To window.

  • Select the navigation provider (for example, Symbol ).

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

  • Click the “Display data in a separate window” button to open the References window.

  • Choose an item in the search result list. CodeRush navigates to the corresponding location in the code editor.