Visual Studio Shortcut Keys - Windows

Visual Studio Shortcut Keys - Windows

Microsoft Visual Studio Shortcut Keys - Windows

Microsoft Visual Studio is a powerful integrated development environment (IDE) for developers. Keyboard shortcuts prepared for Windows users speed up the processes of coding, debugging, and project management, while also increasing productivity. In this post, we share with you the most frequently used shortcut keys of Visual Studio.

Search and Navigation Shortcuts

  • Ctrl + Q: Search in Visual Studio
  • Ctrl + T or Ctrl + ,: Go to All
  • Ctrl + 1 + [T / F / M / S]: Go to Type / File / Member / Symbol
  • Ctrl + - / Ctrl + Shift + -: Go Back / Go Forward
  • F12: Go to Definition
  • Alt + F12: Peek Definition
  • Ctrl + F12: Go to Implementation
  • Ctrl + Shift + F12: Go to Next Error
  • F8 / Shift + F8: Go to Next / Previous Result in List

Editing and Refactoring Shortcuts

  • Alt + Enter or Ctrl + .: Quick Actions / Refactoring Suggestions
  • Ctrl + K, Ctrl + I: Method Info
  • Ctrl + K, Ctrl + C / U: Add / Remove Comment Line
  • Ctrl + Shift + L: Delete Line (without copying)
  • Ctrl + Shift + V: Paste from clipboard ring
  • Alt + ↑ / ↓: Move Code Up / Down
  • Ctrl + K, Ctrl + D / F: Format Document / Selection
  • Ctrl + K, Ctrl + E: Code Cleanup
  • Ctrl + K, Ctrl + S: Surround With (code block like if/try/foreach)
  • Ctrl + R, Ctrl + R: Rename
  • Ctrl + R, Ctrl + E: Encapsulate Field
  • Ctrl + R, Ctrl + G: Remove and Sort Usings
  • Ctrl + R, Ctrl + M: Extract Method

Debugging and Testing Shortcuts

  • F5: Debug
  • Ctrl + F5: Run (without debugging)
  • Shift + F5: Stop
  • F9: Toggle Breakpoint
  • F10: Step Over
  • F11: Step Into
  • Shift + F11: Step Out
  • Ctrl + R, Ctrl + A: Debug All Tests
  • Ctrl + R, A: Run All Tests

Git Shortcuts

  • Alt + G, C: Git Changes Window
  • Alt + G, M: Git Repository Window
  • Ctrl + Alt + F3: Branch Picker
  • Ctrl + Alt + F4: Repository Picker
  • Ctrl + E, Ctrl + C: Network Operations Menu

Window Management Shortcuts

  • Ctrl + I, S: Select Active File in Solution Explorer
  • Ctrl + Alt + L: Solution Explorer
  • Ctrl + Alt + O: Output Window
  • Ctrl + _ E: Error List
  • Ctrl + Alt + B: Breakpoints
  • Alt + F6 / Shift + Alt + F6: Next / Previous Tool Window
  • Shift + Esc: Close Current Tool Window
  • Ctrl + Alt + PgUp / PgDn: Go to Document Left / Right
  • Ctrl + Tab / Ctrl + Shift + Tab: Most Recent / Least Used Open Document
  • Ctrl + Alt + Home: Keep Preview Window Open
  • Shift + Alt + Enter: Full Screen (maximize window / minimize menus)

These shortcuts will help you use Visual Studio more efficiently.