xxxxxxxxxx
Format Document (Ctrl+Shift+I) - Format the entire active file.
Format Selection (Ctrl+K Ctrl+F) - Format the selected text
xxxxxxxxxx
To format a selection in windows: Ctrl + K, Ctrl + F
To format a selection in macOS: CMD⌘ + K, CMD⌘ + F