4.5.11

Navigate to Definition in Visual Studio 2010

Visual Studio has a window that will show you the source code of any selected method, class, property or field. It is called the Code Definition window. You can display this window by using the menu and going to View->Code Definition Window (or Ctrl+\,Ctrl+D). This displays under the code editor by default.



You can use this in sync with the Call Hierarchy Window to quickly navigate to interface implementations. By right clicking on an item in the Code Defintion Window and choosing View Call Heirarchy (or Ctrl+K, Ctrl+T). When you are viewing the call heirarchy on an abstract item, a folder displays called Implements. In this folder will be displayed all the classes that implement this method, and clicking on one of them will take you to the definition indicated.

Summary:


  1. highlight the definition you want to see. It automatically shows up in the Code Definition Window.
  2. Press Ctrl+\,Ctrl+D to navigate to the Code Definition Window
  3. Finally, press Ctrl+K, Ctrl+T to show the Code Hierarchy Window

1 comment:

  1. Charles, Forgive me for attempting to contact you via this medium. We're a consulting company looking for a web developer for a 6 month gig in Ft. Worth. If you are interested, please contact me at mpopovici@tunabear.com or call me at 972-922-5477.

    Thank you.

    Michael

    ReplyDelete

Get widget