CodeRush Tip – Quick Navigation

Quick Navigation is a kind of intelligent search.

Basic Search:

  • Press Ctrl+Shift+Q.
  • Type the (partial) name of a Type or Member you’re looking for in the box at the top.

QuickNavigationSearchString

  • As you type, the search results are narrowed and displayed for your perusal.
  • The phrase you typed, is highlighted in red in each of the results.
  • Select an entry (Enter or Double Click) to jump directly to it.

Camel Case Search

Additionally Quick Navigation will recognise the use of Capital letters to indicate word boundaries

  • If you type CHS this will be interpreted as “please find me phrases with these letters in sequence
  • Found characters are highlighted in red with blue highlights indicating additional capitals which existing between those sought.
  • Note below how the phrase CHS has located both “CopyAsHexString” and “CSharpEventHandlerService”

QuickNavigationCopyHexString

Intelligent Searching

Like the References Tool window, Quick Navigation is intelligent.

It is not simply a text search facility. Instead Quick Navigation searches for Types or Members which match your search criteria. Like the References Tool window, this means that comments and partial matches are excluded from the results, preventing you from having to filter those results out yourself.

Options

Quick Navigation hides it’s filter options by default. They can be toggled using the dropdown in the upper right position of this dialog.

QuickNavigationFilters

The buttons presented represent various restrictions that can be placed on the results brought back.

  • The first 3 groups of buttons (Types, members and Access) can have their buttons set in any arrangement.
  • The last set of buttons (scope) may have only a single button active at once.

You can restrict

  • the type of Types searched to any combination of Classes, Interfaces, Structures, Enumerations and Delegates
  • the type of Members searched to any combination of Methods, Properties, Events, Fields and Locals and Parameters
  • the Access level of results to any combination of private, protected, internal (friend), protected internal or public

… and of course you can restrict the Scope of the search itself to any of current File, Namespace, Project, Solution or All files

Stay tuned for more Quick Navigation related tips

2 comment(s)
Bradley Uffner_2
Bradley Uffner_2

Would it be possible to have this quick find window use a "normal" visual studio window so that it can  be docked in to the UI?  I'd like to keep it handy, but it keeps closing its self.  It works far better than the Class View, which I currently use to locate classes and members, but class view can remain docked as a tab, while this can't.

19 April, 2011
Rory Becker - DevExpress
Rory Becker - DevExpress

After talking to some of the Devs, this is something we're looking to explore in the future along with several other UI improvements.

If you'd like to hasten it's development, a suggestion in the Support Center ( http://www.devexpress.com/sc/ ) will add weight to this line of development.

20 April, 2011

Please login or register to post comments.