<

Essential Visual Studio Keyboard Short Cuts

Published on
9,090 Points
2,990 Views
1 Endorsement
Last Modified:
Approved
For many programmers out there, Visual Studio is the tool in your arsenal.  The following are a few quick tweaks and short cuts I use to streamline my visual studio experience.

First, I don't like how Visual Studio 2008 changed my beloved bookmarking, so I tweak it back to the way it was in Visual Studio 2002/3/5...  

Under
   Tools->Options, and on the Treeview, Environment->Keyboard
I modify:
   Edit.NextBookmark        to be  Shift+Ctrl+K, Shift+Ctrl+N
   Edit.PreviousBookmark to be  Shift+Ctrl+K, Shift+Ctrl+P

Then I modify
   Edit.NextBookmarkInDocument         to be Ctrl+K, Ctrl+N
   Edit.PreviousBookmarkInDocument  to be Ctrl+K, Ctrl+P

I find this is a much more intuitive use of the short-cuts for myself; especially if you've got multiple tab panes open, and are going through more than one code listing and setting bookmarks at a time; what a pain to jump between documents when it's not your intention!

Now on to the best short-cuts I love!

Ctrl+K, Ctrl+K: Set a bookmark
Ctrl+K, Ctrl+P; Default - Previous bookmark; Modification - Previous bookmark in the active document.
Ctrl+K, Ctrl+N; Default - Next bookmark; Modification - Next bookmark in the active document.
Ctrl+K, Ctrl+C: Comment selected lines of code.
Ctrl+K, Ctrl+U: Uncomment selected lines of code.
Ctrl+M, Ctrl+M: Expand / Contract region under cursor.

Finally, once you've tweaked your Visual Studio layout to however you prefer, don't forget to save and backup your settings, via Tools->Import and Export Settings...

Choose Export Selected Environment Settings, I choose All settings (uncheck, and recheck the 'All Settings' Checkbox in the tree), and save the settings.  Please don't forget to backup the settings; if something goes wrong (HDD, etc.), it can take hours to reset all your settings!

I hope you enjoyed this article,

Jacob Janzen
1
Comment
Author:jake072
0 Comments

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Join & Write a Comment

Key to your CPU's ability to stay cool is to use the right amount of thermal paste and apply it correctly. In other words you want as much thermal conductivity between CPU and the cooling block. Use a quality thermal paste and apply it in a manner…
Microsoft Office 365 Backup and Restore Solution by SysTools to export Office 365 mailbox to PST / EML file format on Windows OS. On Mac, tool backup O365 to PST / MBOX / MSG / EML / EMLX file formats. Not only this, restore option helps to import s…
Next Article:

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month