Most Useful Visual Studio Keyboard Shortcuts for Productivity

Simplified version in hellorosedev gist

🧭 Navigation

  • Go to Line:

    Ctrl + G
    
  • Go to Definition:

    F12
    
  • Navigate Backward:

    Ctrl + -
    
  • Navigate Forward:

    Ctrl + Shift + -
    
  • Find the Current Open File:

    Ctrl + [ + S
    
  • Feature Search:

    Ctrl + Shift + P
    
  • Code Search:

    Ctrl + T
    
  • Find in Files / Find & Replace:

    Ctrl + Shift + F
    
  • Collapse Code:

    Ctrl + M + O
    
  • Expand Code:

    Ctrl + M + P
    
  • Open Specific Collapse Code:

    Ctrl + M + M
    

âœī¸ Editing

  • Comment Selection:

    Ctrl + K, C
    
  • Uncomment Selection:

    Ctrl + K, U
    
  • Format Document:

    Ctrl + K, D
    
  • Quick Actions / Refactor:

    Ctrl + .
    
  • Rename all Words Similar:

    Ctrl + R + Ctrl + R
    
  • Move the line up and down:

    Alt + Up  or Alt + Down
    
  • Delete Line:

    Ctrl + X
    
  • Multiple Cursors:

    Alt + Shift + Up / Down
    
  • Peek Definition:

    Alt + F12
    
  • Surround With (if, loops, etc):

    Ctrl + K, Ctrl + S
    

🐞 Debugging

  • Toggle Breakpoint:

    F9
    
  • View All Breakpoints:

    Ctrl + Alt + B
    
  • Remove All Breakpoints:

    Ctrl + Shift + F9
    
  • Step Into:

    F11
    
  • Step Over:

    F10
    
  • Step Out:

    Shift + F11
    
  • Run to Cursor:

    Ctrl + F10
    
  • Autos:

    Ctrl + Alt + V, A
    
  • Immediate:

    Ctrl + Alt + I
    
  • Locals:

    Ctrl + Alt + V, L
    
  • Watch:

    Ctrl + Alt + W, 1
    

đŸ› ī¸ Build & Run

  • Build Solution:

    Ctrl + Shift + B
    
  • Start Debugging:

    F5
    
  • Start Without Debugging:

    Ctrl + F5
    
  • Stop Debugging:

    Shift + F5