Saturday, May 31, 2014

Tip 5.46: You can use F12 in the Object Browser to go to the definition of whatever is selected

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



On the context menu of both the Member pane (right panel) and the Object pane (left panel), you'll see the Go To Definition command. You can use this command to navigate directly into the code where whatever you have selected is defined (or you'll get a nice error message).

VSTip5460

The Edit.GoToDefinition command is bound to F12. Pressing F12 in the image just shown takes you to where Create() is defined in the code.

Happy Programming! =)
Posted by Nils-Holger at 12:30 PM with 467 comments.

Friday, May 30, 2014

Tip 5.45: What are the two primary means of searching for objects in the Object Browser?

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



Now we'll move to the second toolbar in the Object Browser, which is all about searching.

VSTip5450

The search scope depends on what you have selected in the Object Browser Scope. For example, if you try to search for System.Web in a Console Application, you will not be very successful. There's also another way to search—it's using the Find And Replace window's Find Symbol functionality. You'll notice the Find Symbol search closely resembles the Object Browser search functionality.

VSTip5450a

Happy Programming! =)
Posted by Nils-Holger at 12:44 PM with 437 comments.

Thursday, May 29, 2014

Tip 5.44: You can show extension methods in the Object Browser

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



This tip is new for Visual Studio 2008. You can learn more about extension methods in the documentation located at http://msdn.microsoft.com/en-us/library/bb384936.aspx for Visual Basic and http://msdn.microsoft.com/en-us/library/bb383977.aspx for C#.

In Object Browser Settings, you'll see the Show Extension Methods option.

Now, when you have an extension method in your code (in her example, it's a module because she's using Visual Basic), you'll see a downward-pointing arrow.

VSTip5440

Happy Programming! =)
Posted by Nils-Holger at 1:30 PM with 443 comments.