Please enable Javascript to correctly display the contents on Dot Net Tricks!

Top 10 Visual Studio Keyboard Shorcuts

  Author : Shailendra Chauhan
Updated On : 24 Sep 2016
Total Views : 15,067   
Support : Visual Studio 2008, 2010 & 2012

Playing with keyboard shortcuts is very interesting and reduce the head-ache of using mouse again and again while programming with visual studio IDE. Actually, keyboard shortcuts also enhance your productivity and make your programming life easy and convenient. So, I decided to share a list of top 10 visual studio keyboard shortcuts that's are amazing and very helpful. For more shortcuts refer the article Visual Studio 2008, 2010, 2011, 2012 Keyboard Shortcuts Keys.

  1. F5 & Ctrl-F5

    F5 is used to start your project in debug mode and Ctrl-F5 is used to start your project without debug mode.

  2. F7 & Shift-F7

    F7 is used to show code view of your webpage.

    Shift-F7 is used to show design view of your webpage.

  3. F6 / Shift-F6 / Ctrl-Shift-B

    All of the above shortcuts are used to build the project or solutions.

  4. Ctrl-Shift-A & Alt-Shift-A

    Ctrl-Shift-A is used to add new item to your project.

    Alt-Shift-A is used to add existing item to your project.

  5. Ctrl-K + Ctrl-C & Ctrl-K + Ctrl-U

    Ctrl-K + Ctrl-C is used to do comment a selected block of code.

    Ctrl-K + Ctrl-U is used to do uncomment a selected block of code.

  6. Ctrl-M + Ctrl-O & Ctrl-M + Ctrl-P

    Ctrl-M + Ctrl-O is used to collapse all code to definitions.

    Ctrl-M + Ctrl-P is used to expand all code.

  7. Ctrl-K + Ctrl-S & Alt-Shift-Arrow(Right,Left,Bottom,Top)

    Ctrl-K + Ctrl-S is used to surrounded a block of code to an specific block or control.

    Alt-Shift-Arrow(Right,Left,Bottom,Top) are used to copy, paste, write vertically as shown in fig.

  8. Ctrl-(+) + Ctrl-. & F12

    Ctrl-(+) + Ctrl-. is used to display smarttag under the red line that provides the options for fixing the code problem.

    F12 is used to navigate to the definition of an instance, variable, class etc.

  9. Ctrl-Shift-F, Ctrl-F & Ctrl-H

    Ctrl-Shift-F is used to find all the ocuurance of a string with in entire solution and display find result window as shown below.

    Ctrl-F is used to find a string in the current document, project and all open documents one by one. Ctrl-H is used to replace a string by a new string in current document, project and entire solution as you want to replace.

  10. F4 & Ctrl-Alt-L

    F4 is used to show property window.

    Ctrl-Alt-L is used to show solution explorer.

What do you think?

I hope you will enjoy these tricks while programming with Visual Studio IDE. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.

Free Interview Books
26 OCT
ASP.NET MVC with AngularJS Development (online)

MON-FRI 07:30 AM-09:00 AM IST

Know More
24 OCT
MEAN Stack Development (online)

MON-FRI 06:00 AM -07:30 AM IST

Know More
24 OCT
AngularJS Development (online)

MON-FRI 08:00 PM-09:30 PM IST.

Know More
23 OCT
PPC Marketing (offline)

Sat, Sun 09:00 AM-10:30 AM IST

Know More
22 OCT
ASP.NET MVC with AngularJS Development (offline)

SAT,SUN     08:00 AM-09:30 AM

20 OCT
NodeJS Development (online)

MON-FRI     06:00 AM - 07:30 AM IST

12 OCT
ASP.NET MVC with AngularJS Development (online)

Mon-Fri     09:30 PM-11:00 PM IST

17 SEP
ASP.NET MVC with AngularJS Development (offline)

SAT,SUN     05:00 PM-06:30 PM IST

NodeJS Development (offline)

Sat, Sun     11:00 AM-12:30 PM IST


Professional Speaks