Foreword

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

SymbolCommon Name
<kbd>{=html}⇧</kbd>{=html}Shift
<kbd>{=html}⌥</kbd>{=html}Option (or Alt)
<kbd>{=html}⌘</kbd>{=html}Command (or Cmd)
<kbd>{=html}↵</kbd>{=html}(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
Linux<kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}⇧</kbd>{=html} + <kbd>{=html}B</kbd>{=html}
MacOS<kbd>{=html}⌘</kbd>{=html} + <kbd>{=html}B</kbd>{=html}
Windows<kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}⇧</kbd>{=html} + <kbd>{=html}B</kbd>{=html}

Exit any program*

OSKeys
Linux<kbd>{=html}Alt</kbd>{=html} + <kbd>{=html}F4</kbd>{=html} or <kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}q</kbd>{=html}
MacOS<kbd>{=html}⌘</kbd>{=html} + <kbd>{=html}q</kbd>{=html}
Windows<kbd>{=html}Alt</kbd>{=html} + <kbd>{=html}F4</kbd>{=html}

Redo*

OSKeys
Linux<kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}y</kbd>{=html}
MacOS<kbd>{=html}⌘</kbd>{=html} + <kbd>{=html}y</kbd>{=html}
Windows<kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}y</kbd>{=html}

Run/execute program

OSKeys
Linux<kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}F5</kbd>{=html}
MacOS<kbd>{=html}F5</kbd>{=html} -or- <kbd>{=html}⌥</kbd>{=html} + <kbd>{=html}⌘</kbd>{=html} + <kbd>{=html}↵</kbd>{=html}
Windows<kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}F5</kbd>{=html}

Save*

OSKeys
Linux<kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}s</kbd>{=html}
MacOS<kbd>{=html}⌘</kbd>{=html} + <kbd>{=html}s</kbd>{=html}
Windows<kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}s</kbd>{=html}

Save All*

OSKeys
Linux<kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}⇧</kbd>{=html} + <kbd>{=html}s</kbd>{=html}
MacOS<kbd>{=html}⌘</kbd>{=html} + <kbd>{=html}⇧</kbd>{=html} + <kbd>{=html}s</kbd>{=html}
Windows<kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}⇧</kbd>{=html} + <kbd>{=html}s</kbd>{=html}

Undo*

OSKeys
Linux<kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}z</kbd>{=html}
MacOS<kbd>{=html}⌘</kbd>{=html} + <kbd>{=html}z</kbd>{=html}
Windows<kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}z</kbd>{=html}

Comment Code Selection

OSKeys
Linux<kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}k</kbd>{=html} + <kbd>{=html}c</kbd>{=html}
MacOS<kbd>{=html}⌘</kbd>{=html} + <kbd>{=html}k</kbd>{=html} + <kbd>{=html}c</kbd>{=html}
Windows<kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}k</kbd>{=html} + <kbd>{=html}c</kbd>{=html}

Uncomment Code Selection

OSKeys
Linux<kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}k</kbd>{=html} + <kbd>{=html}u</kbd>{=html}
MacOS<kbd>{=html}⌘</kbd>{=html} + <kbd>{=html}k</kbd>{=html} + <kbd>{=html}u</kbd>{=html}
Windows<kbd>{=html}Ctrl</kbd>{=html} + <kbd>{=html}k</kbd>{=html} + <kbd>{=html}u</kbd>{=html}