Skip to content

↑↓ moveEnter openEsc close

Format selection: the shortcut in both apps

2 apps · Mac, Windows and Linux

On Windows it is usually Ctrl+K Ctrl+F (2 of 2 apps). The table shows where each app agrees and where it differs.

AppMacWindowsLinux
Visual StudioFormat the selection—CtrlK,CtrlF—
VS CodeFormat selectionCmdK,CmdFCtrlK,CtrlFCtrlK,CtrlF

Small screen: your system's keys only. Open an app's row for every system.

A dash means the app has no default binding, or does not run, on that system. Open a row for notes and the full key details.

How the apps compare

  • Mac: Cmd+K Cmd+F in VS Code.
  • Windows: every app here uses CtrlK,CtrlF.
  • Linux: Ctrl+K Ctrl+F in VS Code.

Learn it by pressing it: Visual Studio shortcuts practice or VS Code shortcuts practice.