Helix Cheatsheet

https://helix-editor.com/

General / Overall

C-jIS
Save selection (jumplist)
C-sIS
Save (:w)
C-aIS
Select all
EscIS
Collapse selection
InsIS
Insert/Normal mode
EnterS
Repeat last motion
S-EnterIS
Go to word (gw)
C-A-EnterIS
Save selection
C-spaceI
Completion

Navigation

HomeIS
First non-whitespace
EndIS
Line end (newline in I)
C-HomeIS
Line start
C-EndIS
Line end (newline)
C-PgUpIS
File start
C-PgDnIS
File end

Selection Extension

*S
Set / search register
_S
Trim whitespace from selection
C-lIS
Extend to line bounds
BS
Prev subword start
ES
Next subword end
WS
Next subword start
C-LeftIS
Prev word start
C-RightIS
Next word start
C-A-S-LeftIS
Ext prev subword start
C-A-S-RightIS
Ext next subword start
C-S-LeftIS
Ext prev word start
C-S-RightIS
Ext next word start
S-DownIS
Extend line down
S-EndIS
Extend to line end
S-HomeIS
Extend to line start
S-LeftIS
Extend char left
S-RightIS
Extend char right
S-UpIS
Extend line up
xS
Extend line below
XS
Extend line above
C-n
IS Select current word
C-S-n IS
Select current subword
C-enter IS
Select next match
C-A-n IS
Select all occurrences
A-iA-oS
Shrink/expand selection (LSP-based)
m iS
Select inside object (quotes, parens...)
m aS
Select around object (quotes, parens...)
m mS
Select matching bracket
CC-DownS
Add cursor below
A-CC-UpS
Add cursor above

Line & Block Editing

D
Delete to line end
jS
Move line down
g jS
Move visual line down
kS
Move line up
g kS
Move visual line up
A-UpI
Move line up
A-DownI
Move line down
A-j
Join selections
A-k
Keep selections
DelI
Delete selection
BsI
Delete char backward
C-hI
Delete prev word
C-BsI
Delete prev word
C-DelI
Delete next word
A-BsI
Kill to line start
S-BsI
Delete sel & insert
A-DelI
Kill to line end
C-S-kI
Delete line
TabI
Indent
S-TabI
Unindent
C-A-uIS
Change to uppercase
C-A-lIS
Change to lowercase

Clipboard & Paste

C-cIS
Yank
C-xIS
Cut (delete sel)
C-vIS
Paste before
C-yIS
Redo
C-zIS
Undo
p
Paste before
P
Paste after
␣ p
Paste clipboard before
␣ P
Paste clipboard after

Go To

C-A-bIS
Next paragraph
C-A-BIS
Prev paragraph
C-A-dIS
Next diagnostic
C-A-DIS
Prev diagnostic
C-A-eIS
Next change
C-A-EIS
Prev change
C-A-fIS
Next function
C-A-FIS
Prev function
C-A-hIS
Earlier (history)
C-A-HIS
Later (history)
C-A-jIS
Jump backward
C-A-JIS
Jump forward
C-A-tIS
Next class
C-A-TIS
Prev class
C-A-pIS
Next parameter
C-A-PIS
Prev parameter
C-A-yIS
Next test
C-A-YIS
Prev test
C-A-zIS
Next comment
C-A-ZIS
Prev comment

Toggle / Action (+)

a
Code action
d
Toggle EOL diagnostics
e
Reveal current buffer in Explorer
f
Format
g
Insert UUID
h
Toggle inlay hints
i
Toggle indent guides
p
Copy between registers
q
Toggle inline diagnostics
r
Reflow
s
Toggle soft wrap
w
Toggle whitespace
u
Go to file/url
y
Open configuration
z
Reload configuration

Tools & Misc

C-S-g
Lazygit
C-S-y
Yazi

Git (A-g)

b
Blame
d
Diff unstaged
D
Diff staged
A-d
Diff staged and unstaged
h
Log (file)
l
Log (global)
s
Status
u
Pull & Update
x
reset diff change

Formatting & Comments

C-A-S-f
Format
C-/
Toggle comments

Buffers & Files

C-,IS
Previous buffer
C-.IS
Next buffer
C-A-qIS
Quit (:q)
\ c
Buffer close (:bc)
\ C
Buffer force close (:bc!)
\ r
Reload
\ R
Reload all
\ x
Buffer close others(:bco)
g ag m
Last accessed/modified

Multiple Cursors

s
Split on regex
A-s
Split on newline
()
Cycle main selection
A-,
Remove a cursor