Use Visual Studio's Code Definition Window to your advantage

Posted: (EET/GMT+2)

 

When I'm developing C# code with Visual Studio 2005, I find the "Go To Definition" command very handy. By right clicking a symbol in the code editor, and then choosing "Go To Definition" from the popup menu, I can see the source code file (and line) where the symbol is defined:

Or, in the case of a .NET framework symbol, such as the EventArgs class, Visual Studio displays a read-only representation of the original source code, generated from metadata:

This command is useful, but there's more especially if you find yourself using the Go To Definition command often. By selecting the View/Code Definition Window command, you can open up a window, which updates it's contents while you move your editor cursor or navigate your code. A very useful window indeed.