Navigate Code Using Code Definition Window in Visual Studio

Code Definition Window is very useful features in  Visual Studio. Most of the developers overlook it very easily. But this is extremely helpful and fast your code navigation. This is a Read only code editor which help to view your code block.

First Launch the Code Navigation Window From View > Code Definition Window ( Ctrl + W , D)

image

By default the window will show “No Definition Selected” , as there is no definition is been selected to view.

image

Now, While editing or navigate your code, the Code Definition Window will display the definition of the objects which is selected.  As show in below image, when  “BlobStream” from code window is selected,  Code definition window displaying the definition of “BlobSteam” . Generally we need to do the “Go To Definition” for the same, but now you can view in a single shot.

image

This is also true if you select any methods or properties from code block.

The “Code Definition window” will also work fine for “Object Browser” and also from “Class View” . Navigate through the classes or methods , code definition window will show the related definition.

image

Yes, this is really a nice features.

For more info read

Hope this helps !

Cheers !

Abhijit

Abhijit Jana

Abhijit runs the Daily .NET Tips. He started this site with a vision to have a single knowledge base of .NET tips and tricks and share post that can quickly help any developers . He is a Former Microsoft ASP.NET MVP, CodeProject MVP, Mentor, Speaker, Author, Technology Evangelist and presently working as a .NET Consultant. He blogs at http://abhijitjana.net , you can follow him @AbhijitJana . He is the author of book Kinect for Windows SDK Programming Guide.