RSS

ReSharper 5 – Navigation

06 Dec

The series continues with Navigation section, which is IMHO quiet brilliant. Abilities to navigate to Type, File, Symbol, Member, Declaration, Implementation, Base and Derived Symbols, and many others, will satisfy your needs in almost every respect. Besides that, ReSharper provides an improved “Find reference” dialog, which is my personal favorite.

What might prove as a winning combination is a “Navigate To” menu which contains all possible options to navigate from caret location. R# also provides some “Find” possibilities and I think this is the best place to put them along.

By the way: if you’ve missed my previous post from this series, you can navigate to any of them using links bellow.

Part 1 – Installation & First-time Configuration
Part 2 – Coding Assistance & Templates
Part 3 – Refactoring
Part 4 – Navigation
Part 5 – Code Inspection
Part 6 – Unit Tests
Part 7 – Performance & Memory Consumption
Part 8 – Ease of Use
Part 9 – Extensibility
Part 10 – Other Cool Features
Part 11 – Final Thoughts

Navigation Actions

  • Go to Type… – navigates you to any type within a solution or referenced assemblies.
  • Go to File… - navigates you to any file within a solution.
  • Go to Symbol… - navigates you to any symbol (method, property, …) within a solution or referenced assembly.
  • Go to File Member… - navigates you to any member within the type (class).
  • Go to Declaration… - same as Visual Studio command.
  • Go to Implementation… - navigates you to a member implementation – great to navigate trough interfaces.
  • Base Symbols – navigates you to base members (classes, interfaces,…).
  • Derived Symbols - navigates you to members (classes,interfaces…) that derive from this class/interface.
  • Type of Symbol - navigates you an implementation of type regarding the member you performed action on. For example: You have defined a string property name "Title" in your class. When you execute this action, ReSharper will jump to string implementation (in our case to metadata file).
  • Next / Previous Member - navigates among members (classes, interfaces, methods, regions) in the currently opened file.
  • Containing Declaration - navigates to a method, that declares the statement where you execute the command.
  • Navigate To… - provides you a list of all possible navigations regarding the member under the caret.
  • Recent Files… – provides you a list of all recently opened files.
  • Recent Edits… – provides you a list of all recently edited members (classes, interfaces, methods,…) and locations where the code was edited.
  • Previous Edit – very similar functionality to Visual Studio’s Navigate Backward, unless it saves only position where code was edited and not all.
  • Related Files… – provides you a list of files with the same or related name excluding the file extension. For example: if you execute the command in Form1.cs file, you’ll be given Form1.Designer.cs file as an option.
  • Previous / Next Location – very similar functionality to Visual Studio’s Navigate Backward / Forward.

Navigation Dialogs

Find Actions

  • Find Usages – provides you a list of  usages for specific member. In case there’s only one usage, it will take you to that location.
  • Find Usages Advanced… – allows to define what are you looking for and where you want to look at. All the rest is pretty much the same to previous command.
  • Highlight Usages in File… – highlights specific members’ background with SkyBlue color. Useful for Visual Studio 2005/2008 users.
  • Find Code Dependent on Module…
  • Find symbols External to Scope… – provides you a list of assemblies/namespaces where for all members used within the file.
  • Search with Pattern…
  • Previous / Next Item – navigates you to next “usage” in Find Results window.

 

Find Windows

Advertisement
 
Leave a comment

Posted by on December 6, 2010 in Tools

 

Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.