Back to Devexpress

How to: Search for Code Symbols of a Certain Kind

coderushforroslyn-120415-getting-started-examples-navigation-how-to-search-for-code-symbols-of-a-certain-kind.md

latest1.4 KB
Original Source

How to: Search for Code Symbols of a Certain Kind

  • Apr 13, 2022
  • 2 minutes to read

This example shows how to change the Ctrl+Shift+Q shortcut to open the Jump to Symbol window with a custom filter. This filter allows you to find code symbols of a specific kind (for example, methods, properties, etc). You can also use other parameters for this filter (for example, access modifier and scope). CodeRush applies the filter when you type a symbol’s name or a part of it in the search field of the Jump to Symbol window.

You can also create custom shortcuts that open the Jump to Symbol window with different filters.

Follow the steps below.

  1. Use the CodeRush | Shortcuts… menu item to access the shortcuts configuration options page.

  2. Create a new shortcut with the JumpToSymbol command or find Ctrl+Shift+Q.

  3. Specify the initial filter in “Parameters”.

  4. Click OK to save changes and close the Shortcuts window.

  5. Press Ctrl+Shift+Q or your custom shortcut to open the Jump to Symbol window.

  6. Type a symbol’s name or a part of it in the search field. Tab Ctrl to see this filter in the invoked window.

See Also

Search for a Code Symbol