Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Visual Studio Tips

DZone's Guide to

Visual Studio Tips

·
Free Resource

At work, I spend a huge amount of my time working with Microsoft Technologies. As such, I also use Visual Studio. Here are some of the tipps and tricks to efficiently work with it.

Keystrokes

Here are my preferred keystrokes. Note, keystrokes separated by a comma mean you have to use them in sequence in order to activate the command.
They refer to VS2012 but some may also work in previous versions.

Standard

ShortcutDescription
Ctrl+K, Ctrl+DAutoformat the document, whether it is an HTML page, CS or JavaScript file
Ctrl+K,CComment the selected part
Ctrl+K,UUn-comment the selected part
Ctrl+QPlace the cursor in the Quick-Launch box for then executing some menu command
Ctrl+,Open the "Navigate to" dialog...probably the most powerful command for mouse-less navigation
Ctrl+-Navigate backwards in the cursor position history
Ctrl+Shift+-Navigate forwards in the cursor position history
Ctrl+M,Ctrl+OCollapse to definitions

Custom mapped

ShortcutDescription
Ctrl+WThis is the default combination for closing windows on nearly all win apps I know, but strangely not on Visual Studio. Therefore, the first thing I do is to remap it to `File.Close`.
Ctrl+R, Ctrl+SRebuild solution

Topics:

Published at DZone with permission of Juri Strumpflohner. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}