Comment or uncomment the line in Cursor
In Cursor, press Cmd+/ (Mac), Ctrl+/ (Windows, Linux). Works when: editor focused.
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=deleteInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'return
ShiftZXCVBNM,./Shift↑
fnctrloptcmdcmdopt←↓→
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=BkspInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'Enter
ShiftZXCVBNM,./Shift↑
CtrlWinAltAltWinMenuCtrl←↓→
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=BkspInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'Enter
ShiftZXCVBNM,./Shift↑
CtrlSuperAltAltSuperMenuCtrl←↓→
See it happen Press the shortcut above, or
More Cursor shortcuts: editor
| Action | Mac | Windows | Linux |
|---|---|---|---|
| Command palette | ShiftCmdP | CtrlShiftP | CtrlShiftP |
| Go to a file | CmdP | CtrlP | CtrlP |
| Show or hide the side bar | CmdB | CtrlB | CtrlB |
| Show or hide the terminal | Ctrl` | Ctrl` | Ctrl` |
| Add the next match to the selection | CmdD | CtrlD | CtrlD |
| Go to definition | F12 | F12 | F12 |
| Rename symbol | F2 | F2 | F2 |
| Find | CmdF | CtrlF | CtrlF |
| Search in files | ShiftCmdF | CtrlShiftF | CtrlShiftF |
| Save | CmdS | CtrlS | CtrlS |