Skip to main content

General shortcuts

| Description | Windows / Linux | Mac | |---------------------------------|--------------------------------------------------|--------------------------------------------|| | Start simulation | Ctrl + Enter | + Enter | | Save project | Ctrl + S | + S | | Auto format code | Alt + Shift + F | + + F | | Trigger auto complete | Ctrl + Space | + Space | | Show list of available commands | F1 | F1 | | Jump to next error in file | F8 | F8 | | Jump to previous error in file | Shift + 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

Build docs developers (and LLMs) love