Code Editing Shortcuts

September 29, 2025 ยท View on GitHub

Trigger Autocompletion

Shift+Cmd+Space

Change Tabs UI

Ctrl+Tab

Select the whole content of the editor

Cmd+A

Ctrl+A

Deletes the part of the line after the cursor

Ctrl+K

Go To Start & End Of Line

Cmd+Right
Cmd+Left

Ctrl+Right
Ctrl+Left

home
end

Move By Word

Option+Right
Option+Left

Alt+Right
Alt+Left

Go To Start & End Of File

Cmd+Up
Cmd+Down

Ctrl+Home
Ctrl+End

Cut, Copy & Past Line

Cmd+X #Cut
Cmd+C #Copy
Cmd+V #Paste

Ctrl+X # Cut
Ctrl+C # Copy
Ctrl+V # Paste

Move Line Up & Down

Option+Up
Option+Down

Alt+Up
Alt+Down

Copy Line Up & Down

Shift+Option+Up
Shift+Option+Down

Shift+Alt+Up
Shift+Alt+Down

Remove Line

ShiftCmd+K

Shift+Ctrl+K

Insert Line

Cmd+Enter # Insert below
Shift+Cmd+Enter # Insert above

Ctrl+Enter # Insert below
Shift+Ctrl+Enter # Insert above

Jump To Matching Bracket

Shift+Cmd+\
Shift+Ctrl+\

Add Line Comment

Cmd+/
Ctrl+/

Add Block Comment

Shift+Option+A
Shift+Alt+A

Highlight Code

Shift+Any Direction

Delete the part of the line from the cursor to the right side

Cmd+Delete

Undo and Redo

Cmd+Z
Cmd+Y

Ctrl+Z
Shift+Cmd+Z

UndoSelection and RedoSelection

Cmd+U
Shift+Cmd+U

Ctrl+U
Alt+U

Delete word before cursor

Alt+Backspace

Delete word after cursor

Alt+D 

Indent line or selection

Cmd+]

Ctrl+]

Dedent line or selection

Cmd+[

Ctrl+[

Insert tab

Tab

Auto-indent current line or selection

Shift+Tab

Save (if mapped by app)

Cmd+S

Ctrl+S

Find in document

Cmd+F

Ctrl+F

Find next

Cmd+G

Ctrl+G

Find previous

Shift+Cmd+G

Shift+Ctrl+G

Replace

Cmd+Alt+F

Shift+Ctrl+F

Replace all

Shift+Cmd+Alt+F

Shift+Ctrl+R