Format selection in Visual Studio Code
EditingWindowsCtrl+K then Ctrl+FCtrlKthenCtrlF
MacCmd+K then Cmd+F⌘Kthen⌘F
On Windows, press Ctrl + K then Ctrl + F. On Mac, press Cmd + K then Cmd + F.
Ask your agent
Prompt
In Visual Studio Code, the shortcut to "Format selection" is Ctrl+K then Ctrl+F on Windows and Cmd+K then Cmd+F on Mac. Check whether anything in my setup overrides it, and if I want a different key, change the binding for me.
Paste into Claude Code and it will do the rest.
Related Visual Studio Code shortcuts
- Cut line (empty selection)Ctrl+XCtrlX
- Copy line (empty selection)Ctrl+CCtrlC
- Format documentShift+Alt+FShiftAltF
- Move line upAlt+UpAlt↑
- Move line downAlt+DownAlt↓
- Copy line upShift+Alt+UpShiftAlt↑
- Copy line downShift+Alt+DownShiftAlt↓
- Delete lineCtrl+Shift+KCtrlShiftK
Questions
On Windows, press Ctrl + K then Ctrl + F. On Mac, press Cmd + K then Cmd + F.