Skip to main content

Navigate to Symbol Declaration

CodeRush can navigate to an identifier declaration from any reference in C#, Visual Basic, TypeScript, JavaScript, and XAML files.

How to Navigate

  1. Place the caret in an identifier.

  2. Press the Ctrl+Alt+N shortcut to invoke the Jump To window.

  3. Choose the Declaration item.

CodeRush moves the caret to the symbol declaration.

CRR_JumpToDecompiled

You can run the Navigate to Declaration command with the F12 keyboard shortcut. See the section below to learn how to configure this shortcut.

Note

You can also use the F12 shortcut to open a resource dictionary source or image source in XAML code.

Configure a Shortcut

  1. Select CodeRush\Shortcuts… from the Visual Studio menu to open the Shortcuts options page.

    Config_Shortcuts_Access

  2. Use the search text box on the Shortcuts page to find the F12 shortcut that executes the Jump To Declaration command.

  3. Select this entry and enable the F12 shortcut in it.

    EnableShortcut

  4. Click the OK button to close the options dialog and save the changes.

    Note

    You can change the default shortcut for the Jump To Declaration command. See the Adding a Shortcut section of the Shortcuts topic.

  5. Press F12 to run the Jump to Declaration command.

    Config_Shortcuts_Access