| Move left |
|
h then Left |
h then Left |
Windows, macOS, Linux |
Source |
| Move down |
|
j then Down |
j then Down |
Windows, macOS, Linux |
Source |
| Move up |
|
k then Up |
k then Up |
Windows, macOS, Linux |
Source |
| Move right |
|
l then Right |
l then Right |
Windows, macOS, Linux |
Source |
| Move next word start |
|
w |
w |
Windows, macOS, Linux |
Source |
| Move previous word start |
|
b |
b |
Windows, macOS, Linux |
Source |
| Move next word end |
|
e |
e |
Windows, macOS, Linux |
Source |
| Move next WORD start |
|
W |
W |
Windows, macOS, Linux |
Source |
| Move previous WORD start |
|
B |
B |
Windows, macOS, Linux |
Source |
| Move next WORD end |
|
E |
E |
Windows, macOS, Linux |
Source |
| Find till next char |
|
t |
t |
Windows, macOS, Linux |
Source |
| Find next char |
|
f |
f |
Windows, macOS, Linux |
Source |
| Find till previous char |
|
T |
T |
Windows, macOS, Linux |
Source |
| Find previous char |
|
F |
F |
Windows, macOS, Linux |
Source |
| Go to line number <n> |
|
G |
G |
Windows, macOS, Linux |
Source |
| Repeat last motion ( f , t , m , [ or ] ) |
|
Alt+. |
Option+. |
Windows, Linux |
Source |
| Move to the start of the line |
|
Home |
Home |
Windows, macOS, Linux |
Source |
| Move to the end of the line |
|
End |
End |
Windows, macOS, Linux |
Source |
| Move page up |
|
Ctrl+b then PageUp |
Ctrl+b then PageUp |
Windows, macOS, Linux |
Source |
| Move page down |
|
Ctrl+f then PageDown |
Ctrl+f then PageDown |
Windows, macOS, Linux |
Source |
| Move cursor and page half page up |
|
Ctrl+u |
Ctrl+u |
Windows, macOS, Linux |
Source |
| Move cursor and page half page down |
|
Ctrl+d |
Ctrl+d |
Windows, macOS, Linux |
Source |
| Jump forward on the jumplist |
|
Ctrl+i |
Ctrl+i |
Windows, macOS, Linux |
Source |
| Jump backward on the jumplist |
|
Ctrl+o |
Ctrl+o |
Windows, macOS, Linux |
Source |
| Save the current selection to the jumplist |
|
Ctrl+s |
Ctrl+s |
Windows, macOS, Linux |
Source |
| Replace with a character |
|
r |
r |
Windows, macOS, Linux |
Source |
| Replace with yanked text |
|
R |
R |
Windows, macOS, Linux |
Source |
| Switch case of the selected text |
|
~ |
~ |
Windows, macOS, Linux |
Source |
| Set the selected text to lower case |
|
` |
` |
Windows, macOS, Linux |
Source |
| Set the selected text to upper case |
|
Alt+` |
Option+` |
Windows, Linux |
Source |
| Insert before selection |
|
i |
i |
Windows, macOS, Linux |
Source |
| Insert after selection (append) |
|
a |
a |
Windows, macOS, Linux |
Source |
| Insert at the start of the line |
|
I |
I |
Windows, macOS, Linux |
Source |
| Insert at the end of the line |
|
A |
A |
Windows, macOS, Linux |
Source |
| Open new line below selection |
|
o |
o |
Windows, macOS, Linux |
Source |
| Open new line above selection |
|
O |
O |
Windows, macOS, Linux |
Source |
| Repeat last insert |
|
. |
. |
Windows, macOS, Linux |
Source |
| Undo change |
|
u |
u |
Windows, macOS, Linux |
Source |
| Redo change |
|
U |
U |
Windows, macOS, Linux |
Source |
| Move backward in history |
|
Alt+u |
Option+u |
Windows, Linux |
Source |
| Move forward in history |
|
Alt+U |
Option+U |
Windows, Linux |
Source |
| Yank selection |
|
y |
y |
Windows, macOS, Linux |
Source |
| Paste after selection |
|
p |
p |
Windows, macOS, Linux |
Source |
| Paste before selection |
|
P |
P |
Windows, macOS, Linux |
Source |
| Indent selection |
|
& then g then t then ; |
& then g then t then ; |
Windows, macOS, Linux |
Source |
| Unindent selection |
|
& then l then t then ; |
& then l then t then ; |
Windows, macOS, Linux |
Source |
| Format selection ( LSP ) |
|
= |
= |
Windows, macOS, Linux |
Source |
| Delete selection |
|
d |
d |
Windows, macOS, Linux |
Source |
| Delete selection, without yanking |
|
Alt+d |
Option+d |
Windows, Linux |
Source |
| Change selection (delete and enter insert mode) |
|
c |
c |
Windows, macOS, Linux |
Source |
| Change selection (delete and enter insert mode, without yanking) |
|
Alt+c |
Option+c |
Windows, Linux |
Source |
| Increment object (number) under cursor |
|
Ctrl+a |
Ctrl+a |
Windows, macOS, Linux |
Source |
| Decrement object (number) under cursor |
|
Ctrl+x |
Ctrl+x |
Windows, macOS, Linux |
Source |
| Start/stop macro recording to the selected register (experimental) |
|
Q |
Q |
Windows, macOS, Linux |
Source |
| Play back a recorded macro from the selected register (experimental) |
|
q |
q |
Windows, macOS, Linux |
Source |
| Pipe each selection through shell command, replacing with output |
|
| |
| |
Windows, macOS, Linux |
Source |
| Pipe each selection into shell command, ignoring output |
|
Alt+| |
Option+| |
Windows, Linux |
Source |
| Run shell command, inserting output before each selection |
|
! |
! |
Windows, macOS, Linux |
Source |
| Run shell command, appending output after each selection |
|
Alt+! |
Option+! |
Windows, Linux |
Source |
| Pipe each selection into shell command, keep selections where command returned 0 |
|
$ |
$ |
Windows, macOS, Linux |
Source |
| Select all regex matches inside selections |
|
s |
s |
Windows, macOS, Linux |
Source |
| Split selection into sub selections on regex matches |
|
S |
S |
Windows, macOS, Linux |
Source |
| Split selection on newlines |
|
Alt+s |
Option+s |
Windows, Linux |
Source |
| Merge selections |
|
Alt |
Option |
Windows, Linux |
Source |
| Merge consecutive selections |
|
Alt+_ |
Option+_ |
Windows, Linux |
Source |
| Align selection in columns |
|
& |
& |
Windows, macOS, Linux |
Source |
| Trim whitespace from the selection |
|
_ |
_ |
Windows, macOS, Linux |
Source |
| Collapse selection onto a single cursor |
|
; |
; |
Windows, macOS, Linux |
Source |
| Flip selection cursor and anchor |
|
Alt+; |
Option+; |
Windows, Linux |
Source |
| Ensures the selection is in forward direction |
|
Alt+: |
Option+: |
Windows, Linux |
Source |
| Remove the primary selection |
|
Alt |
Option |
Windows, Linux |
Source |
| Copy selection onto the next line (Add cursor below) |
|
C |
C |
Windows, macOS, Linux |
Source |
| Copy selection onto the previous line (Add cursor above) |
|
Alt+C |
Option+C |
Windows, Linux |
Source |
| Rotate main selection backward |
|
( |
( |
Windows, macOS, Linux |
Source |
| Rotate main selection forward |
|
) |
) |
Windows, macOS, Linux |
Source |
| Rotate selection contents backward |
|
Alt+( |
Option+( |
Windows, Linux |
Source |
| Rotate selection contents forward |
|
Alt+) |
Option+) |
Windows, Linux |
Source |
| Select entire file |
|
% |
% |
Windows, macOS, Linux |
Source |
| Select current line, if already selected, extend to next line |
|
x |
x |
Windows, macOS, Linux |
Source |
| Extend selection to line bounds (line-wise selection) |
|
X |
X |
Windows, macOS, Linux |
Source |
| Shrink selection to line bounds (line-wise selection) |
|
Alt+x |
Option+x |
Windows, Linux |
Source |
| Join lines inside selection |
|
J |
J |
Windows, macOS, Linux |
Source |
| Join lines inside selection and select the inserted space |
|
Alt+J |
Option+J |
Windows, Linux |
Source |
| Keep selections matching the regex |
|
K |
K |
Windows, macOS, Linux |
Source |
| Remove selections matching the regex |
|
Alt+K |
Option+K |
Windows, Linux |
Source |
| Comment/uncomment the selections |
|
Ctrl+c |
Ctrl+c |
Windows, macOS, Linux |
Source |
| Expand selection to parent syntax node ( TS ) |
|
Alt+o then Alt+Up |
Option+o then Option+Up |
Windows, Linux |
Source |
| Shrink syntax tree object selection ( TS ) |
|
Alt+i then Alt+Down |
Option+i then Option+Down |
Windows, Linux |
Source |
| Select previous sibling node in syntax tree ( TS ) |
|
Alt+p then Alt+Left |
Option+p then Option+Left |
Windows, Linux |
Source |
| Select next sibling node in syntax tree ( TS ) |
|
Alt+n then Alt+Right |
Option+n then Option+Right |
Windows, Linux |
Source |
| Select all sibling nodes in syntax tree ( TS ) |
|
Alt+a |
Option+a |
Windows, Linux |
Source |
| Select all children nodes in syntax tree ( TS ) |
|
Alt+I then Alt+Shift+Down |
Option+I then Option+Shift+Down |
Windows, Linux |
Source |
| Move to end of parent node in syntax tree ( TS ) |
|
Alt+e |
Option+e |
Windows, Linux |
Source |
| Move to start of parent node in syntax tree ( TS ) |
|
Alt+b |
Option+b |
Windows, Linux |
Source |
| Search for regex pattern |
|
/ |
/ |
Windows, macOS, Linux |
Source |
| Search for previous pattern |
|
? |
? |
Windows, macOS, Linux |
Source |
| Select next search match |
|
n |
n |
Windows, macOS, Linux |
Source |
| Select previous search match |
|
N |
N |
Windows, macOS, Linux |
Source |
| Use current selection as the search pattern, automatically wrapping with \b on word boundaries |
|
* |
* |
Windows, macOS, Linux |
Source |
| Use current selection as the search pattern |
|
Alt+* |
Option+* |
Windows, Linux |
Source |
| Enter select (extend) mode |
|
v |
v |
Windows, macOS, Linux |
Source |
| Enter goto mode |
|
g |
g |
Windows, macOS, Linux |
Source |
| Enter match mode |
|
m |
m |
Windows, macOS, Linux |
Source |
| Enter command mode |
|
: |
: |
Windows, macOS, Linux |
Source |
| Enter view mode |
|
z |
z |
Windows, macOS, Linux |
Source |
| Enter sticky view mode |
|
Z |
Z |
Windows, macOS, Linux |
Source |
| Enter window mode |
|
Ctrl+w |
Ctrl+w |
Windows, macOS, Linux |
Source |
| Enter space mode |
|
Space |
Space |
Windows, macOS, Linux |
Source |
| Vertically center the line |
|
z then c |
z then c |
Windows, macOS, Linux |
Source |
| Align the line to the top of the screen |
|
t |
t |
Windows, macOS, Linux |
Source |
| Align the line to the bottom of the screen |
|
b |
b |
Windows, macOS, Linux |
Source |
| Align the line to the middle of the screen (horizontally) |
|
m |
m |
Windows, macOS, Linux |
Source |
| Scroll the view downwards |
|
j then Down |
j then Down |
Windows, macOS, Linux |
Source |
| Scroll the view upwards |
|
k then Up |
k then Up |
Windows, macOS, Linux |
Source |
| Go to line number <n> else start of file |
|
g |
g |
Windows, macOS, Linux |
Source |
| Go to column number <n> else start of line |
|
| |
| |
Windows, macOS, Linux |
Source |
| Go to the end of the file |
|
e |
e |
Windows, macOS, Linux |
Source |
| Go to files in the selections |
|
f |
f |
Windows, macOS, Linux |
Source |
| Go to the start of the line |
|
h |
h |
Windows, macOS, Linux |
Source |
| Go to the end of the line |
|
l |
l |
Windows, macOS, Linux |
Source |
| Go to first non-whitespace character of the line |
|
s |
s |
Windows, macOS, Linux |
Source |
| Go to the top of the screen |
|
t |
t |
Windows, macOS, Linux |
Source |
| Go to the middle of the screen |
|
c |
c |
Windows, macOS, Linux |
Source |
| Go to the bottom of the screen |
|
b |
b |
Windows, macOS, Linux |
Source |
| Go to definition ( LSP ) |
|
d |
d |
Windows, macOS, Linux |
Source |
| Go to type definition ( LSP ) |
|
y |
y |
Windows, macOS, Linux |
Source |
| Go to references ( LSP ) |
|
r |
r |
Windows, macOS, Linux |
Source |
| Go to implementation ( LSP ) |
|
i |
i |
Windows, macOS, Linux |
Source |
| Go to the last accessed/alternate file |
|
a |
a |
Windows, macOS, Linux |
Source |
| Go to the last modified/alternate file |
|
m |
m |
Windows, macOS, Linux |
Source |
| Go to next buffer |
|
n |
n |
Windows, macOS, Linux |
Source |
| Go to previous buffer |
|
p |
p |
Windows, macOS, Linux |
Source |
| Go to last modification in current file |
|
. |
. |
Windows, macOS, Linux |
Source |
| Move down textual (instead of visual) line |
|
j |
j |
Windows, macOS, Linux |
Source |
| Move up textual (instead of visual) line |
|
k |
k |
Windows, macOS, Linux |
Source |
| Show labels at each word and select the word that belongs to the entered labels |
|
w |
w |
Windows, macOS, Linux |
Source |
| Goto matching bracket ( TS ) |
|
m |
m |
Windows, macOS, Linux |
Source |
| Switch to next window |
|
w then Ctrl+w |
w then Ctrl+w |
Windows, macOS, Linux |
Source |
| Vertical right split |
|
v then Ctrl+v |
v then Ctrl+v |
Windows, macOS, Linux |
Source |
| Horizontal bottom split |
|
s then Ctrl+s |
s then Ctrl+s |
Windows, macOS, Linux |
Source |
| Go to files in the selections in horizontal splits |
|
f |
f |
Windows, macOS, Linux |
Source |
| Go to files in the selections in vertical splits |
|
F |
F |
Windows, macOS, Linux |
Source |
| Move to left split |
|
h then Ctrl+h then Left |
h then Ctrl+h then Left |
Windows, macOS, Linux |
Source |
| Move to split below |
|
j then Ctrl+j then Down |
j then Ctrl+j then Down |
Windows, macOS, Linux |
Source |
| Move to split above |
|
k then Ctrl+k then Up |
k then Ctrl+k then Up |
Windows, macOS, Linux |
Source |
| Move to right split |
|
l then Ctrl+l then Right |
l then Ctrl+l then Right |
Windows, macOS, Linux |
Source |
| Close current window |
|
q then Ctrl+q |
q then Ctrl+q |
Windows, macOS, Linux |
Source |
| Only keep the current window, closing all the others |
|
o then Ctrl+o |
o then Ctrl+o |
Windows, macOS, Linux |
Source |
| Swap window to the left |
|
H |
H |
Windows, macOS, Linux |
Source |
| Swap window downwards |
|
J |
J |
Windows, macOS, Linux |
Source |
| Swap window upwards |
|
K |
K |
Windows, macOS, Linux |
Source |
| Swap window to the right |
|
L |
L |
Windows, macOS, Linux |
Source |
| Open file picker at LSP workspace root |
|
f |
f |
Windows, macOS, Linux |
Source |
| Open file picker at current working directory |
|
F |
F |
Windows, macOS, Linux |
Source |
| Open buffer picker |
|
b |
b |
Windows, macOS, Linux |
Source |
| Open jumplist picker |
|
j |
j |
Windows, macOS, Linux |
Source |
| Open changed file picker |
|
g |
g |
Windows, macOS, Linux |
Source |
| Debug (experimental) |
|
G |
G |
Windows, macOS, Linux |
Source |
| Show documentation for item under cursor in a popup ( LSP ) |
|
k |
k |
Windows, macOS, Linux |
Source |
| Open document symbol picker ( LSP ) |
|
s |
s |
Windows, macOS, Linux |
Source |
| Open workspace symbol picker ( LSP ) |
|
S |
S |
Windows, macOS, Linux |
Source |
| Open document diagnostics picker ( LSP ) |
|
d |
d |
Windows, macOS, Linux |
Source |
| Open workspace diagnostics picker ( LSP ) |
|
D |
D |
Windows, macOS, Linux |
Source |
| Rename symbol ( LSP ) |
|
r |
r |
Windows, macOS, Linux |
Source |
| Apply code action ( LSP ) |
|
a |
a |
Windows, macOS, Linux |
Source |
| Select symbol references ( LSP ) |
|
h |
h |
Windows, macOS, Linux |
Source |
| Open last fuzzy picker |
|
' |
' |
Windows, macOS, Linux |
Source |
| Enter window mode |
|
w |
w |
Windows, macOS, Linux |
Source |
| Comment/uncomment selections |
|
c |
c |
Windows, macOS, Linux |
Source |
| Block comment/uncomment selections |
|
C |
C |
Windows, macOS, Linux |
Source |
| Line comment/uncomment selections |
|
Alt+c |
Option+c |
Windows, Linux |
Source |
| Paste system clipboard after selections |
|
p |
p |
Windows, macOS, Linux |
Source |
| Paste system clipboard before selections |
|
P |
P |
Windows, macOS, Linux |
Source |
| Yank selections to clipboard |
|
y |
y |
Windows, macOS, Linux |
Source |
| Yank main selection to clipboard |
|
Y |
Y |
Windows, macOS, Linux |
Source |
| Replace selections by clipboard contents |
|
R |
R |
Windows, macOS, Linux |
Source |
| Global search in workspace folder |
|
/ |
/ |
Windows, macOS, Linux |
Source |
| Open command palette |
|
? |
? |
Windows, macOS, Linux |
Source |
| Scroll up |
|
Ctrl+u |
Ctrl+u |
Windows, macOS, Linux |
Source |
| Scroll down |
|
Ctrl+d |
Ctrl+d |
Windows, macOS, Linux |
Source |
| Previous entry |
|
Shift+Tab then Ctrl+p then Up |
Shift+Tab then Ctrl+p then Up |
Windows, macOS, Linux |
Source |
| Next entry |
|
Tab then Ctrl+n then Down |
Tab then Ctrl+n then Down |
Windows, macOS, Linux |
Source |
| Close menu and accept completion |
|
Enter |
Enter |
Windows, macOS, Linux |
Source |
| Close menu and reject completion |
|
Ctrl+c |
Ctrl+c |
Windows, macOS, Linux |
Source |
| Previous signature |
|
Alt+p |
Option+p |
Windows, Linux |
Source |
| Next signature |
|
Alt+n |
Option+n |
Windows, Linux |
Source |
| Go to next diagnostic ( LSP ) |
|
] then d |
] then d |
Windows, macOS, Linux |
Source |
| Go to previous diagnostic ( LSP ) |
|
[ then d |
[ then d |
Windows, macOS, Linux |
Source |
| Go to last diagnostic in document ( LSP ) |
|
] then D |
] then D |
Windows, macOS, Linux |
Source |
| Go to first diagnostic in document ( LSP ) |
|
[ then D |
[ then D |
Windows, macOS, Linux |
Source |
| Go to next function ( TS ) |
|
] then f |
] then f |
Windows, macOS, Linux |
Source |
| Go to previous function ( TS ) |
|
[ then f |
[ then f |
Windows, macOS, Linux |
Source |
| Go to next type definition ( TS ) |
|
] then t |
] then t |
Windows, macOS, Linux |
Source |
| Go to previous type definition ( TS ) |
|
[ then t |
[ then t |
Windows, macOS, Linux |
Source |
| Go to next argument/parameter ( TS ) |
|
] then a |
] then a |
Windows, macOS, Linux |
Source |
| Go to previous argument/parameter ( TS ) |
|
[ then a |
[ then a |
Windows, macOS, Linux |
Source |
| Go to next comment ( TS ) |
|
] then c |
] then c |
Windows, macOS, Linux |
Source |
| Go to previous comment ( TS ) |
|
[ then c |
[ then c |
Windows, macOS, Linux |
Source |
| Go to next test ( TS ) |
|
] then T |
] then T |
Windows, macOS, Linux |
Source |
| Go to previous test ( TS ) |
|
[ then T |
[ then T |
Windows, macOS, Linux |
Source |
| Go to next paragraph |
|
] then p |
] then p |
Windows, macOS, Linux |
Source |
| Go to previous paragraph |
|
[ then p |
[ then p |
Windows, macOS, Linux |
Source |
| Go to next change |
|
] then g |
] then g |
Windows, macOS, Linux |
Source |
| Go to previous change |
|
[ then g |
[ then g |
Windows, macOS, Linux |
Source |
| Go to last change |
|
] then G |
] then G |
Windows, macOS, Linux |
Source |
| Go to first change |
|
[ then G |
[ then G |
Windows, macOS, Linux |
Source |
| Add newline below |
|
] then S then p then a then c then e |
] then S then p then a then c then e |
Windows, macOS, Linux |
Source |
| Add newline above |
|
[ then S then p then a then c then e |
[ then S then p then a then c then e |
Windows, macOS, Linux |
Source |