Skip to main content

Editor Keyboard Shortcuts

General shortcuts

DescriptionWindows / LinuxMac
Start simulationCtrl + Enter⌘ Enter
Save projectCtrl + S⌘ S
Auto format codeAlt + Shift + F⌥ ⇧ F
Trigger auto completeCtrl + Space⌘ Space
Show list of available commandsF1F1
Jump to next error in fileF8F8
Jump to previous error in fileShift + F8⇧ F8

Basic editing keys

DescriptionWindows / LinuxMac
Indent line*Ctrl + ]⌘ ]
Outdent line*Ctrl + [⌘ [
Comment / uncomment line*Ctrl + /⌘ /
Find in fileCtrl + F⌘ F
ReplaceCtrl + H⌘ H

* if you have selected some text, this will operate on the selection instead of the current line

Power editing keys

These keyboard shortcuts enable powerful editing operations, such as managing multiple cursors / selections.

DescriptionWindows / LinuxMac
Select word at cursor / next occurrenceCtrl + D⌘ D
Select all occurrencesCtrl + Shift + L⌘ ⇧ L
Duplicate line* aboveAlt + Shift + Up⌥ ⇧ Up
Duplicate line* belowAlt + Shift + Down⌥ ⇧ Down
Move current line* upAlt + Up⌥ Up
Move current line* downAlt + Down⌥ Down
Add cursor aboveCtrl + Alt + Up⌘ ⌥ Up
Add cursor belowCtrl + Alt + Down⌘ ⌥ Down
Expand selectionAlt + Shift + Right⌥ ⇧ Right
Shrink selectionAlt + Shift + Left⌥ ⇧ Left

* if you selected some text, this will operate on the selection instead of the current line