VS Keys & Code Snips

Cntrl + Left or Right = word to word

Cntrl + End = End of file

Cntrl + Home = begining of file

Cntrl + C  &  Cntrl + V = copy paste entire line

Cntrl + delete  =  delete word by word

Cntrl + backspace = delete word from end of line

Cntrl  + L = delete line

Cntrl + X = cut line and copy to clipboard

Cntrl + K &  Cntrl + C = comment line or selection

Cntrl + K  &  Cntrl + U  =  Uncomment line or selection


Cntrl + K +  K = toggle bookmark

Cntrl  + W +  B = show bookmark window

Cntrl  + M + M   =  collapse/uncollapse  code block

Cntrl  +  Tab = Cycle through open files

Cntrl + Shift + Tab = cycle through open files backward

Cntrl + F4  = Close openfile

Alt + W + L = Close all open files

Cntrl + ,  =  opens navigate to  dialog

Shift + Alt + Enter  =   toggle full screen file 

Cntrl + F =  open find dialog ; then F3  to next occurance; Shift + F3 = previous occurance

Cntrl + H = opens replace dialog

Alt + R = Replaces currently selected occurences

Alt+ A = Replaces all selected occurences


F5 = debug application

Shift + F5 = stop debugging session

Cntrl + F5 = launch the appilcation without debugging

Cntrl + Shift + B = build the application

Cntrl + R   =  refresh the page


F9 = toggle breakpoint

F10 = step over

F11 = step into a method

Shift + F11 = step out of  a method

F8 = navigate to next error


code snippets

ctor + Tab +Tab  = create constructor

prop + Tab +Tab  = create auto properties

propfull  + Tab + Tab  create full properies with field

class + tab +tab =  class MyClass {  }

cw + tab = console.writeline()

try + tab = try .. catch;

tryf = try.....finally

for + tab =  for (int i = 0; i < length; i++) {  }

forr + tab for (int i = length - 1; i >= 0; i--) { }

foreach =       foreach (var item in collection) {     }

while + tab +tab

do + tab + tab

interface + tab + tab


Cntrl + K  & Cntrl + F  = Format code


option: Navigate to Tools -> Options / Environment -> Fonts and Colors. Change the color for "User Types - Classes"