Skip to content

↑↓ moveEnter openEsc close

Format document in VS Code

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

In Visual Studio Code, press Shift+Option+F (Mac), Shift+Alt+F (Windows), Ctrl+Shift+I (Linux).

What else uses Option+Shift+F? · What else uses Alt+Shift+F? · What else uses Ctrl+Shift+I?

More VS Code shortcuts: rich languages editing

ActionMacWindowsLinux
Trigger suggestionCtrlSpaceorCmdICtrlSpaceorCtrlICtrlSpaceorCtrlI
Trigger parameter hintsShiftCmdSpaceCtrlShiftSpaceCtrlShiftSpace
Format selectionCmdK,CmdFCtrlK,CtrlFCtrlK,CtrlF
Go to definitionF12F12F12
Peek definitionOptionF12AltF12CtrlShiftF10
Open definition to the sideCmdK,F12CtrlK,F12CtrlK,F12
Quick FixCmd.Ctrl.Ctrl.
Show referencesShiftF12ShiftF12ShiftF12
Rename symbolF2F2F2
Trim trailing whitespaceCmdK,CmdXCtrlK,CtrlXCtrlK,CtrlX

All 12 in rich languages editing · All 138 VS Code shortcuts