.NET Zone is brought to you in partnership with:

Juri Strumpflohner mainly operates in the web sector developing rich applications with HTML5 and JavaScript. Beside having a Java background and developing Android applications he currently works as a software architect mainly dealing with the .Net technology stack. When he’s not coding or blogging about his newest discoveries he is practicing Yoseikan Budo where he owns a 2nd DAN. Juri is a DZone MVB and is not an employee of DZone and has posted 54 posts at DZone. You can read more from them at their website. View Full User Profile

Visual Studio Tips

  • submit to reddit

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.


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.


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

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

Published at DZone with permission of Juri Strumpflohner, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)


Juri Strumpflohner replied on Sun, 2012/11/04 - 2:55pm

Note that this article has been published as "Bliki" article meaning I'll directly add new stuff over time as I come across new Visual Studio related tips and tricks.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.