Foreword

This document contains useful keyboard shortcuts for different operating systems and IDEs. We use the following symbols:

SymbolCommon 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:

Useful Shortcuts

Build solution

OSKeys
LinuxCtrl + + B
MacOS + B
WindowsCtrl + + B

Exit any program*

OSKeys
LinuxAlt + F4 or Ctrl + q
MacOS + q
WindowsAlt + F4

Redo*

OSKeys
LinuxCtrl + y
MacOS + y
WindowsCtrl + y

Run/execute program

OSKeys
LinuxCtrl + F5
MacOSF5 -or- + +
WindowsCtrl + F5

Save*

OSKeys
LinuxCtrl + s
MacOS + s
WindowsCtrl + s

Save All*

OSKeys
LinuxCtrl + + s
MacOS + + s
WindowsCtrl + + s

Undo*

OSKeys
LinuxCtrl + z
MacOS + z
WindowsCtrl + z

Comment Code Selection

OSKeys
LinuxCtrl + k + c
MacOS + k + c
WindowsCtrl + k + c

Uncomment Code Selection

OSKeys
LinuxCtrl + k + u
MacOS + k + u
WindowsCtrl + k + u