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

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