vscode format document shortcut
- User
vscode format document shortcut
Assistant
The keyboard shortcut to format a document in VS Code is:
Windows/Linux:
Shift + Alt + FmacOS:
Shift + Option + FThis will format the entire document using the default formatter for the file type you're working with. You can also right-click in the editor and select "Format Document" from the context menu.
If you want to format just a selection, you can use:
- Windows/Linux:
Ctrl + K, Ctrl + F - macOS:
Cmd + K, Cmd + F
- Windows/Linux:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.