Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 2.35 KB

keyboard-shortcuts.md

File metadata and controls

48 lines (39 loc) · 2.35 KB
title sidebar_label
Editor Keyboard Shortcuts
Keyboard Shortcuts

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

Description Windows / Linux Mac
Indent line* Ctrl + ] ⌘ ]
Outdent line* Ctrl + [ ⌘ [
Comment / uncomment line* Ctrl + / ⌘ /
Find in file Ctrl + F ⌘ F
Replace Ctrl + 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.

Description Windows / Linux Mac
Select word at cursor / next occurrence Ctrl + D ⌘ D
Select all occurrences Ctrl + Shift + L ⌘ ⇧ L
Duplicate line* above Alt + Shift + Up ⌥ ⇧ Up
Duplicate line* below Alt + Shift + Down ⌥ ⇧ Down
Move current line* up Alt + Up ⌥ Up
Move current line* down Alt + Down ⌥ Down
Add cursor above Ctrl + Alt + Up ⌘ ⌥ Up
Add cursor below Ctrl + Alt + Down ⌘ ⌥ Down
Expand selection Alt + Shift + Right ⌥ ⇧ Right
Shrink selection Alt + Shift + Left ⌥ ⇧ Left

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