Last active
April 22, 2025 07:21
-
-
Save lucascompython/e7d9d5e3ace0af3b215bf664ca906009 to your computer and use it in GitHub Desktop.
Zed cheatsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Match Selection | |
g-a -> select all match | |
g-l -> select next match | |
g-shit l -> select previous match | |
g-l and then c -> select next match, remove the text and enter insert mode | |
# Pane Spliting | |
ctrl-w a -> split window | |
ctrl-k down -> split window down | |
ctrl-k up -> split window up | |
ctrl-k right -> split window right | |
ctrl-k left -> split window left | |
ctrl-shift w -> bring back last closed pane | |
# Pane Navigation | |
ctrl-w j -> go pane down | |
ctrl-w k -> go pane up | |
ctrl-w l -> go pane right | |
ctrl-w h -> go pane left | |
CTRL-w q -> close file/tab | |
CTRL-SHIFT b -> open symbol explorer | |
# Terminal | |
ctrl-` -> open terminal | |
# Diagnostics | |
F8 -> open/goto diagnostics | |
CTRL-SHFT M -> open project diagnostics | |
# Function information | |
CTRL+i -> open function signature | |
SHIFT-K -> open function signature++ | |
# Search | |
CTRL+t -> search symbols in projec | |
F12 -> find usages of symbol | |
CTRL-SHIFT F -> search in entire project | |
# General Code Navigation | |
SHIFT-5 -> for going to the mathcing symbol for example: '"', '(' | |
ALT-{ -> go up a paragraf | |
ALT-} -> go down a paragraf | |
# Cursor | |
Shift-Alt -> Arrows to create cursors | |
Z-Z -> center the cursor on the screen | |
# File Explorer | |
CTRL-SHIFT E -> go to file explorer | |
% -> new file | |
D -> new dir | |
F2 -> rename | |
CTRL-X -> cut/move | |
SPACE -> preview file | |
ENTER -> open file | |
# GIT | |
CTRL-SHIFT G -> go to version control panel | |
J-k -> to navigate changes | |
SHIFT-X -> to stash all the changes | |
ENTER -> to open a change | |
SPACE -> to stash a single file | |
TAB -> to go to commit message (down) | |
UNTAB -> to go up | |
CTRL-ENTER -> to comit | |
CTRL-G up -> push | |
CTRL-G CTRL-G -> git fetch | |
CTRL-G Backspace -> discard | |
CTRL-ALT-SHIFT B -> manage branches | |
# Left Pane | |
Ctrl-b -> toggle | |
# Right Pane | |
Ctrl-Alt-b -> toggle | |
# FOLDING | |
Z-C -> fold at cursor | |
Z-O -> unfold at cursor | |
Z-A -> fold buffer slice when searching for example | |
# Markdown | |
ctrl-shift v -> open preview | |
ctrl-k v -> open preview to the side | |
# Just vim stuff | |
F-* -> search for letter -> ';'(shift-dot) go to the next occurence of char | |
-> '.' go the occurence behind of char | |
SHIFT-R -> REPLACE MODE | |
#(shift 3) -> search for word |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment