Shrink selection in VS Code
In Visual Studio Code, press Ctrl+Shift+Cmd+← (Mac), Shift+Alt+← (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: multi-cursor and selection
| Action | Mac | Windows | Linux |
|---|---|---|---|
| Insert cursor above | OptionCmd↑ | CtrlAlt↑ | AltShift↑ |
| Insert cursor below | OptionCmd↓ | CtrlAlt↓ | AltShift↓ |
| Undo last cursor operation | CmdU | CtrlU | CtrlU |
| Insert cursor at end of each selected line | OptionShiftI | AltShiftI | AltShiftI |
| Select current line | CmdL | CtrlL | CtrlL |
| Select all occurrences of current selection | ShiftCmdL | CtrlShiftL | CtrlShiftL |
| Add selection to next find match | CmdD | CtrlD | CtrlD |
| Select all | CmdA | CtrlA | CtrlA |
| Expand selection | CtrlShiftCmd→ | AltShift→ | AltShift→ |
| Column (box) selection down | OptionShiftCmd↓ | CtrlAltShift↓ | CtrlAltShift↓ |