Close editor in VS Code
In Visual Studio Code, press Cmd+W (Mac), Ctrl+W or Ctrl+F4 (Windows), Ctrl+W (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: editor management
| Action | Mac | Windows | Linux |
|---|---|---|---|
| Close folder | CmdK,F | CtrlK,F | CtrlK,F |
| Split editor | Cmd\ | Ctrl\ | Ctrl\ |
| Focus into 1st, 2nd or 3rd editor group | Cmd1 | Ctrl1 | Ctrl1 |
| Focus into previous editor group | CmdK,Cmd← | CtrlK,Ctrl← | CtrlK,Ctrl← |
| Focus into next editor group | CmdK,Cmd→ | CtrlK,Ctrl→ | CtrlK,Ctrl→ |
| Move editor left | CmdK,ShiftCmd← | CtrlShiftPageUp | CtrlShiftPageUp |
| Move editor right | CmdK,ShiftCmd→ | CtrlShiftPageDown | CtrlShiftPageDown |
| Move active editor group left | CmdK,← | CtrlK,← | CtrlK,← |
| Move active editor group right | CmdK,→ | CtrlK,→ | CtrlK,→ |