Skip to content

Instantly share code, notes, and snippets.

@Foadsf
Created January 12, 2026 14:46
Show Gist options
  • Select an option

  • Save Foadsf/297e20117b8eb4dbd3b584e0ce187c18 to your computer and use it in GitHub Desktop.

Select an option

Save Foadsf/297e20117b8eb4dbd3b584e0ce187c18 to your computer and use it in GitHub Desktop.

Visual Studio 2026 Keyboard Shortcuts

1. Code Editing & Formatting

Manage your code layout and cleanliness.

Action Shortcut
Duplicate Line Ctrl + D
Delete Line Ctrl + Shift + L
Comment Selection Ctrl + K then C
Uncomment Selection Ctrl + K then U
Auto-format File Ctrl + K then D
Increase Indentation Tab
Decrease Indentation Shift + Tab

2. Debugging (The "F" Keys)

Control execution flow while testing.

Action Shortcut Note
Toggle Breakpoint F9 Adds/removes the red dot
Start Debugging F5 Runs to the next breakpoint
Stop Debugging Shift + F5 Kills the app
Restart Debugging Ctrl + Shift + F5 Stops and immediately restarts
Run Without Debugging Ctrl + F5 Runs faster, no breakpoints hit
Step Over F10 Run current line, go to next
Step Into F11 Go inside the method call
Step Out Shift + F11 Finish current method, return to caller

3. Navigation & Search

Find files and text quickly.

Action Shortcut
Find in Files (Global) Ctrl + Shift + F
Go to Solution Explorer Ctrl + Alt + L
Show Output Window Ctrl + Alt + O
Show Error List Ctrl + \ then E

4. Code Folding (Outlining)

Hide or show sections of code to reduce clutter.

Action Shortcut
Collapse All Ctrl + M then A
Expand All Ctrl + M then X
Toggle Current Section Ctrl + M then L

5. Solution & Window Management

Manage files and the IDE layout.

Action Shortcut Type
Build Project Ctrl + Shift + B Shortcut
Save All Ctrl + Shift + S Shortcut
Close All Documents AltWL Menu Sequence
Reset Window Layout AltWR Menu Sequence
Create New Folder AltPD Menu Sequence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment