This article assumes a clean installation of Visual Studio without third party tools like Resharper.
Description | Windows hotkey | Mac hotkey |
Move a line up | ALT + ↑ |
⌥ + ↑ |
Move a line up | ALT + ↑ |
⌥ + ↓ |
Format document | CTRL + k , CTRL + d |
⌃ + i |
Sort and remove usings | CTRL + r , CTRL + g |
not defined (*) |
Build solution | CTRL + SHIFT + b |
⌘ + b |
Delete a line | SHIFT + DELETE |
not defined (*) |
Smart Tag (Quick fix) | CTRL + . |
⌥ + ⏎ |
Comment multiple lines | CTRL + k , CTRL + c |
⌘ + / |
Uncomment multiple lines | CTRL + k , CTRL + u |
⌘ + / |
Start without debugging | CTRL + F5 |
⌥ + ⌘ + ⏎ |
Start with debugging | F5 |
⌘ + ⏎ |
Stop running | SHIFT + F5 |
⇧ + ⌘ + ⏎ |
Toggle Breakpoint | F9 |
(fn ) F9 |
Debug, Step over | F10 |
⌘ + ⇧ + o |
Debug, Step into | F11 |
⌘ + ⇧ + i |
Debug, Continue | F5 |
⌘ + ⏎ |
If a menu option is not available as a shortcut, you can add it yourself.
⌘
+ ,
to open optionsRemove unused and sort (usings)