Visual Studio Shortcut Keys

Shortcut keys of Visual Studio

These are the most commonly used shortcut keys of visual studio:

Ctrl + K C

Comment

Ctrl + K U

Uncomment

F4

from code to markup

Ctl+E , D

for indentation all section below the cursor.

Ctrl+K, Ctrl+D

Auto Format

Ctrl+MP

Split All Function

Ctrl+MO

Merge All Function

Ctrl+KS

Direct Apply (if/for/foreach/try) Condition

Ctrl + Shift + B
 

 Build
 

F5

Debug

F12

Go to Definition

CTRL + . [dot]

Display options on smarttag menu.

CTRL + , [comma]

Display Navigate-To dialog box - to navigate through

solutions files (including css, cshtml, ...)

Shift + F12

Find all references

Ctrl + End

Move to the end of a file

Ctrl + Home

Move to the top of file

Shift+F7

Switch between aspx and codebehind.

CTRL+M-O

Collapse to definitions.

tab tab (Double Tab)

Insert a snippet.

F9

Add Debug Point.

Ctrl + Shift + F9          

Remove All Debug Point.  
 

Ctrl + g
 

Find Line Number

Ctrl + Tab

Move All Open File