Go to Definition

Experienced C#, ASP.net developers will definitely know about this but I though to write some tips for the new developers.

If you are using Visual Studio as your developer platform “Go to Definition” is a nice tool to navigate within objects and methods in your project.

Visual Studio 2012
Go to Definition in Visual Studio 2012

In Visual Studio 2012 (all editions) the Go To Definition tool appears when you right click on any method name and the short-cut key for that will be F12.

vs2013_1
Go To Definition in Visual Studio 2013

In Visual Studio 2013 (all editions) the Go To Definition tool appears when you right click on any method name and the short-cut key for that will be F12. And above that it has a new feature known as Peek Definition. This enables the developer to open the particular method definition as a pop-up panel within the same open document. This helps a lot when navigating between more open pages and when it is had to navigate back to where the developer was before. The short-cut  for Peek Definition is Atl+F12.

Peek Definition in Visual Studio 2013
Peek Definition in Visual Studio 2013

So these are some really basic things in Visual Studio but really helpful for developers. Hope you guys have learnt a new simple thing.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.