What is your favorite feature in ReSharper?

To be perfectly honest, it’s impossible to choose a single most valuable feature in ReSharper. Some say it’s on-the-fly error highlighting, some hail the versatile refactorings, while many go crazy for smart name code completion. Well, different strokes for different folks. For now, I would like to focus on one neat little feature that will save you tons of time regardless of your coding style: Go to Type.

The idea is simple. To navigate to any type, all you need is its name.

Press Ctrl + N and start entering the type’s name. You will see the list of matching types in your solution:

Go to type by name

The list is filtered as you enter more letters. Once you see the desired type, select it to navigate to its declaration.

You can further accelerate this process with one or more wildcard options:

  • CamelCase search is supported in Go to Type. If you insert upper case letters in the search box, the filtered names are allowed to skip any number of lower case letters but must include the upper case ones in the order specified in the search string.

    Go to type using CamelCasing

    In the example above, the search string includes some upper case letters as well as some lower case ones. Alternatively, you can enter only upper case letters, resulting in very precise filtering. For instance, to go to LabelDeclarationStub, enter LDS:

    Navigate faster with CamelCasing
  • Insert * (asterisk) to represent 0 or more characters.

    Use wildcards for advanced type name search
  • Insert + (plus sign) to represent 1 or more characters.

    Use wildcards for advanced search
  • Insert ? (question mark) to represent 0 or 1 characters.

    Find types by name using wildcard search


Go to type and enjoy it!

Would you like to tell us about your favorite feature in ReSharper? Leave your comment below :)

Technorati tags: ,
This entry was posted in How-To's, ReSharper Tips&Tricks. Bookmark the permalink.

11 Responses to What is your favorite feature in ReSharper?

  1. Pingback: Ward Bekker's Blog

  2. Pingback: Gabriel Lozano-Morán - The .NET Aficionado

  3. This is a great idea to start to blog about both the tools!!

  4. Pingback: Bite my bytes

  5. Tom Pester says:

    keep m coming. I am goiing to love your tips

  6. Obfuscator says:

    Thanks for your nice comments, folks :)

    Looks like we got a vote from Luke Melia. His pick is the Introduce Variable code refactoring.

    We’ll be sure to cover this and other refactorings in the near future. Stay tuned!

  7. Andrey Simanovsky says:

    By the way, you missed another feature of Go to Type – common prefix completion with Tab key.
    Suppose you typed “S” have in Go to Type classes SomeClass1, SomeClass2, SomeClass3, and so on. Pressing Tab key will complete the search string to “SomeClass”.

  8. Andrey Simanovsky says:

    You also can use Space at the end of the search string to match the end of a type name. For example, "*test " will find all types whose names end in “test”.

  9. Obfuscator says:

    Thanks for your comments, Andrey! I especially like the trick with using Space.

  10. guest says:

    quickly speed while Reflect a lot of assemblies which a project reference!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    quickly speed while Reflect a lot of assemblies which a project reference!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    quickly speed while Reflect a lot of assemblies which a project reference!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    quickly speed while Reflect a lot of assemblies which a project reference!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    quickly speed while Reflect a lot of assemblies which a project reference!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    quickly speed while Reflect a lot of assemblies which a project reference!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    quickly speed while Reflect a lot of assemblies which a project reference!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    quickly speed while Reflect a lot of assemblies which a project reference!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    quickly speed while Reflect a lot of assemblies which a project reference!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    quickly speed while Reflect a lot of assemblies which a project reference!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    quickly speed while Reflect a lot of assemblies which a project reference!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    quickly speed while Reflect a lot of assemblies which a project reference!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    quickly speed while Reflect a lot of assemblies which a project reference!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  11. Developer says:

    - Your add-in DOESN’T have a simple Enable/Disable menu item.
    - Your add-in DOESN’T stop after I unchecked it in Add-ins Manager.
    - Your add-in DOES start automatically again and checked itself in Add-in Manager in next time I use VS.

    It’s suck.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">