Note: Leader key is set to
<space>
a- Create new file/folder- Type name like
file.jsfor a file - Type name with trailing slash like
folder/for a directory - Type path like
folder/file.jsto create in subdirectory
- Type name like
d- Delete file/folderr- Rename file/folderc- Copy file/folderx- Cut file/folderp- Paste file/foldery- Copy filenameY- Copy relative path
Enter- Open file/folder<BS>- Close parent directoryH- Toggle hidden filesR- Refresh tree
<space>ff- Find files<space>fg- Live grep (search in files)<space>fb- Browse buffers<space>fh- Search help tags
Ctrl+/- Toggle comment (normal and visual mode)Ctrl+n- Select word under cursor (multi-cursor)Ctrl+Up/Down- Create cursors verticallyCtrl+Click- Place cursor manuallyCtrl+c- Copy selectionCtrl+x- Cut selectionCtrl+v- Paste (works in normal, insert, and visual modes)
Ctrl+d- Scroll down (keeping cursor centered)Ctrl+u- Scroll up (keeping cursor centered)%- Jump between matching brackets/tagsn/N- Next/previous search result (centered)
gd- Go to definitiongh- Show hover informationgi- Go to implementationgr- Find references<space>rn- Rename symbol<space>ca- Code actions[d- Previous diagnostic]d- Next diagnostic
Tab- Accept suggestionCtrl+]- Clear suggestionCtrl+j- Accept wordCtrl+Space- Trigger completion menu
- Automatically closes brackets, quotes, and JSX tags
- Auto-renames matching JSX tags
- Smart handling of template strings
]c- Next git change[c- Previous git change
<space>f- Format code- Mouse support enabled for clicking and scrolling
- System clipboard integration (copy/paste works with system clipboard)
- Press
<space>and wait to see available commands (which-key) - To create nested folders, add trailing slash:
folder1/folder2/ - To create a file in a new folder:
folder/file.js - Use
<space>fffor quick file search - Use
<space>fgto search within files