Skip to content

↑↓ moveEnter openEsc close

Close folder in VS Code

VS Code 1.96 · 138 shortcuts · checked Nov 2026 · Source: Microsoft docs

In Visual Studio Code, press Cmd+K F (Mac), Ctrl+K F (Windows, Linux).

A chord: press each combination in turn.

More VS Code shortcuts: editor management

ActionMacWindowsLinux
Close editorCmdWCtrlWorCtrlF4CtrlW
Split editorCmd\Ctrl\Ctrl\
Focus into 1st, 2nd or 3rd editor groupCmd1Ctrl1Ctrl1
Focus into previous editor groupCmdK,Cmd←CtrlK,Ctrl←CtrlK,Ctrl←
Focus into next editor groupCmdK,Cmd→CtrlK,Ctrl→CtrlK,Ctrl→
Move editor leftCmdK,ShiftCmd←CtrlShiftPageUpCtrlShiftPageUp
Move editor rightCmdK,ShiftCmd→CtrlShiftPageDownCtrlShiftPageDown
Move active editor group leftCmdK,←CtrlK,←CtrlK,←
Move active editor group rightCmdK,→CtrlK,→CtrlK,→

All 138 VS Code shortcuts