Friday, April 13, 2012

Visual Studio .NET - Some handy shortcuts

We all know some standard keyboard shortcuts that are available in Visual Studio IDE.
Here, are some more shortcuts to use in Visual Studio IDE, which can come handy at times.

Ctrl + K + C = Comment In Code
Ctrl + K + U = Comment Out Code
Ctrl + Shift + A = Add New Item
Ctrl + Shift + B = Build Solution
Ctrl + Shift + C = Class View
Ctrl + Shift + R = Resource View
Ctrl + Shift + O = Open Project

F12 = Go to definition

Here are some more interesting:

1. Find all references
Shift + F12 = Find all references

Say, you have created a method which is called at many places within your project.
Use this shortcut key to know see all the places where this method has been referenced.

2. Paste from Copy History

Ctrl + Shift + V = Paste History
Every time you press "Ctrl + C" to copy contents in your IDE, the previously copied item(s) get stored in a buffer. You can access those contents by repeatedly pressing Ctrl + Shift + V.

2 comments:

  1. Thanks Bhavin :)
    Credit to you for most of Ctrl-Shift-V and Shift-F12

    ReplyDelete

Thanks for visiting my blog.
However, if this helped you in any way, please take a moment to write a comment.

Thanks
Nirman

Blog Archive