Toggle fold in VS Code
In Visual Studio Code, press Cmd+K Cmd+L (Mac), Ctrl+K Ctrl+L (Windows, Linux).
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 VS Code shortcuts: basic editing
| Action | Mac | Windows | Linux |
|---|---|---|---|
| Cut line (empty selection) | CmdX | CtrlX | CtrlX |
| Copy line (empty selection) | CmdC | CtrlC | CtrlC |
| Move line down | Option↓ | Alt↓ | Alt↓ |
| Move line up | Option↑ | Alt↑ | Alt↑ |
| Copy line down | OptionShift↓ | AltShift↓ | CtrlAltShift↓ |
| Copy line up | OptionShift↑ | AltShift↑ | CtrlAltShift↑ |
| Delete line | ShiftCmdK | CtrlShiftK | CtrlShiftK |
| Insert line below | CmdEnter | CtrlEnter | CtrlEnter |
| Insert line above | ShiftCmdEnter | CtrlShiftEnter | CtrlShiftEnter |
| Jump to matching bracket | ShiftCmd\ | CtrlShift\ | CtrlShift\ |