How vscode compact multiline to a singleline?
Select your code => F1 => "Join Lines"
You can also create a keyboard shortcut for this command editor.action.joinLines
Default shortcut on Mac is Ctrl+J
It seems vscode's "Join Lines" keyboard shortcut in macOS is ctrl + j
: