O'Reilly logo

Visual Studio 2012 and .NET 4.5 Expert Development Cookbook by Abhishek Sur

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Navigating between code inside the IDE

Visual Studio comes with a number of useful code navigators; most of them are pretty useful and handy. First of all let us try the Code Highlighting feature in Visual Studio.

How to do it…

To try the Code Highlighting feature in Visual Studio, perform the following:

  1. Double-click on a C# file to highlight each occurrence of the same type in the code.
  2. Press Ctrl + Shift + down/up arrow to navigate between references.
  3. Press Ctrl + ,(comma) to open the Navigate to dialog box to list all the navigation options available for the current selection (or under cursor position).
  4. Right-click on any method or type and select Go To Definition to move to the definition of it.
  5. Right-click on any of the type and select Find All ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required