Skip to content

↑↓ moveEnter openEsc close

Comment or uncomment the line in Cursor

Cursor 2.1 · 50 shortcuts · checked Nov 2026 · Source: Anysphere docs

In Cursor, press Cmd+/ (Mac), Ctrl+/ (Windows, Linux). Works when: editor focused.

What else uses Cmd+/? · What else uses Ctrl+/?

More Cursor shortcuts: editor

ActionMacWindowsLinux
Command paletteShiftCmdPCtrlShiftPCtrlShiftP
Go to a fileCmdPCtrlPCtrlP
Show or hide the side barCmdBCtrlBCtrlB
Show or hide the terminalCtrl`Ctrl`Ctrl`
Add the next match to the selectionCmdDCtrlDCtrlD
Go to definitionF12F12F12
Rename symbolF2F2F2
FindCmdFCtrlFCtrlF
Search in filesShiftCmdFCtrlShiftFCtrlShiftF
SaveCmdSCtrlSCtrlS

All 12 in editor · All 50 Cursor shortcuts