Skip to content

Visual Studio

Comprehensive Visual Studio shortcuts and workflows for .NET development on Windows and macOS.

General Shortcuts

WindowsmacOSDescription
Ctrl+Shift+NCmd+Shift+NNew Project
Ctrl+NCmd+NNew File
Ctrl+OCmd+OOpen File
Ctrl+SCmd+SSave
Ctrl+Shift+SCmd+Shift+SSave All
Ctrl+WCmd+WClose Document
Alt+F4Cmd+QExit
Ctrl+ZCmd+ZUndo
Ctrl+YCmd+Shift+ZRedo
WindowsmacOSDescription
Ctrl+GCmd+LGo to Line
Ctrl+,Cmd+,Go to All
Ctrl+TCmd+TGo to Type
Ctrl+Shift+TCmd+Shift+TGo to File
F12F12Go to Definition
Ctrl+F12Cmd+F12Go to Implementation
Shift+F12Shift+F12Find All References
Ctrl+TabCmd+TabNavigate Forward
Ctrl+Shift+TabCmd+Shift+TabNavigate Backward

Editing

WindowsmacOSDescription
Ctrl+SpaceCtrl+SpaceIntelliSense
Ctrl+Shift+SpaceCtrl+Shift+SpaceParameter Info
Ctrl+K, Ctrl+ICmd+K, Cmd+IQuick Info
Ctrl+.Cmd+.Quick Actions
Ctrl+K, Ctrl+CCmd+K, Cmd+CComment Selection
Ctrl+K, Ctrl+UCmd+K, Cmd+UUncomment Selection
Ctrl+K, Ctrl+DCmd+K, Cmd+DFormat Document
Ctrl+K, Ctrl+FCmd+K, Cmd+FFormat Selection
Alt+Up/DownOption+Up/DownMove Line Up/Down
Shift+Alt+Up/DownShift+Option+Up/DownCopy Line Up/Down

Debugging

WindowsmacOSDescription
F5F5Start Debugging
Ctrl+F5Cmd+F5Start Without Debugging
Shift+F5Shift+F5Stop Debugging
Ctrl+Shift+F5Cmd+Shift+F5Restart Debugging
F9F9Toggle Breakpoint
F10F10Step Over
F11F11Step Into
Shift+F11Shift+F11Step Out
Ctrl+Alt+QCmd+Option+QQuickWatch

Build and Run

WindowsmacOSDescription
Ctrl+Shift+BCmd+Shift+BBuild Solution
F6F6Build Project
Ctrl+BreakCmd+BreakCancel Build
F7F7View Code
Shift+F7Shift+F7View Designer