Keyboard Shortcuts Cheat Sheet
May 22, 2024 (01:30:37 PM)
Foreword
This document contains useful keyboard shortcuts for different operating systems and IDEs. We use the following symbols:
Symbol | Common Name |
---|---|
⇧ | Shift |
⌥ | Option (or Alt) |
⌘ | Command (or Cmd) |
↵ | (Carriage) Return |
The sections labeled with the star symbol (“*”) work generally everywhere, beyond your IDE.
More advanced shortcuts may be available to your particular IDE:
- For Visual Studio for Windows, refer to the documentation,
- For Visual Studio for MacOS, refer to the documentation
- For Rider, refer to the documentation,
- For MonoDevelop, you can refer to this cheatsheet or directly access the key binding panel.
Useful Shortcuts
Build solution
OS | Keys |
---|---|
Linux | Ctrl + ⇧ + B |
MacOS | ⌘ + B |
Windows | Ctrl + ⇧ + B |
Exit any program*
OS | Keys |
---|---|
Linux | Alt + F4 or Ctrl + q |
MacOS | ⌘ + q |
Windows | Alt + F4 |
Redo*
OS | Keys |
---|---|
Linux | Ctrl + y |
MacOS | ⌘ + y |
Windows | Ctrl + y |
Run/execute program
OS | Keys |
---|---|
Linux | Ctrl + F5 |
MacOS | F5 -or- ⌥ + ⌘ + ↵ |
Windows | Ctrl + F5 |
Save*
OS | Keys |
---|---|
Linux | Ctrl + s |
MacOS | ⌘ + s |
Windows | Ctrl + s |
Save All*
OS | Keys |
---|---|
Linux | Ctrl + ⇧ + s |
MacOS | ⌘ + ⇧ + s |
Windows | Ctrl + ⇧ + s |
Undo*
OS | Keys |
---|---|
Linux | Ctrl + z |
MacOS | ⌘ + z |
Windows | Ctrl + z |
Uncomment Code Selection
OS | Keys |
---|---|
Linux | Ctrl + k + u |
MacOS | ⌘ + k + u |
Windows | Ctrl + k + u |
Comment Code Selection