Skip to content

Tip 5.37: You can create a keyboard shortcut for adding references to a solution from the Object Browser

December 27, 2012

“Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio“, courtesy of ‘Sara Ford’

Sara Ford’s Blog

Sara Aside

She was kind of surprised to see it in the list of commands. But, then again, one can never have too many keyboard shortcuts. =)
To write this tip, she bound it to her pseudo random keyboard shortcut Ctrl+Alt+Shift+T. This is her generic, all-purpose keyboard shortcut that she uses for testing purposes.

As far as binding View.ObjectBrowserAddReference to a keyboard shortcut goes, she’ll leave it up to you to decide how useful this is. Maybe the “keyboard shortcut for everything” users will enjoy it.

As long as some object has selection—meaning it doesn’t have to have focus (blue highlight) and has at least inactive selection (light gray highlight)—in the Objects pane (the leftmost pane), you’ll get the following message box when you press the keyboard shortcut.

VSTip5370

And if there’s nothing selected (meaning you probably have absolutely nothing in the Object Browser) and you press the keyboard shortcut, Visual Studio will just stare at you.

Happy Programming! =)

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: