Cursor keyboard shortcuts
Windows · version 2.1 · 50 shortcuts
Hotkeypediahotkeypedia.com
AI
- Open or close the AI pane (Agent)CmdLorCmdICtrlLorCtrlICtrlLorCtrlI
- Inline edit with AICmdKCtrlKCtrlK
- Accept a Tab suggestionTabTabTab
- Accept the next word of a suggestionCmd→Ctrl→Ctrl→
- Dismiss a suggestionEscEscEsc
- Add the selection to the chatShiftCmdLCtrlShiftLCtrlShiftL
- Accept all AI changesCmdEnterCtrlEnterCtrlEnter
- Reject all AI changesCmdBackspaceCtrlBackspaceCtrlBackspace
- Open the mode menu (Agent, Ask, Plan)Cmd.Ctrl.Ctrl.
- Start a new chatCmdNCtrlNCtrlN
- Cursor settingsShiftCmdJCtrlShiftJCtrlShiftJ
Editor
- Command paletteShiftCmdPCtrlShiftPCtrlShiftP
- Go to a fileCmdPCtrlPCtrlP
- Show or hide the side barCmdBCtrlBCtrlB
- Show or hide the terminalCtrl`Ctrl`Ctrl`
- Comment or uncomment the lineCmd/Ctrl/Ctrl/
- Add the next match to the selectionCmdDCtrlDCtrlD
- Go to definitionF12F12F12
- Rename symbolF2F2F2
- FindCmdFCtrlFCtrlF
- Search in filesShiftCmdFCtrlShiftFCtrlShiftF
- SaveCmdSCtrlSCtrlS
- VS Code settingsCmd,Ctrl,Ctrl,
Files and panels
- Show the file explorerShiftCmdECtrlShiftECtrlShiftE
- Show source controlCtrlShiftGCtrlShiftGCtrlShiftG
- Show extensionsShiftCmdXCtrlShiftXCtrlShiftX
- Show or hide the bottom panelCmdJCtrlJCtrlJ
- New terminalCtrlShift`CtrlShift`CtrlShift`
- Show problemsShiftCmdMCtrlShiftMCtrlShiftM
- Open the keybindings editorCmdR,CmdSCtrlR,CtrlSCtrlR,CtrlS
- Close the editorCmdWCtrlWCtrlW
- Reopen the closed editorShiftCmdTCtrlShiftTCtrlShiftT
- Switch editorsCtrlTabCtrlTabCtrlTab
- Split the editorCmd\Ctrl\Ctrl\
Editing
- UndoCmdZCtrlZCtrlZ
- RedoShiftCmdZCtrlYCtrlShiftZ
- Move the line upOption↑Alt↑Alt↑
- Move the line downOption↓Alt↓Alt↓
- Copy the line downOptionShift↓AltShift↓CtrlAltShift↓
- Delete the lineShiftCmdKCtrlShiftKCtrlShiftK
- Add a cursor belowOptionCmd↓CtrlAlt↓AltShift↓
- Format the documentOptionShiftFAltShiftFCtrlShiftI
- Find and replaceOptionCmdFCtrlHCtrlH
Navigation
- Go to a lineCtrlGCtrlGCtrlG
- Go to a symbol in the fileShiftCmdOCtrlShiftOCtrlShiftO
- Show referencesShiftF12ShiftF12ShiftF12
- Next problemF8F8F8
- Go backCtrl-Alt←CtrlAlt-
- Start debuggingF5F5F5
- Toggle a breakpointF9F9F9