1 line; 2 line; 3 line; 4 line;
Select your code =>
Select your code => F1 => "Join Lines"
You can also create a keyboard shortcut for this command editor.action.joinLines
editor.action.joinLines
Default shortcut on Mac is Ctrl+J
It seems vscode's "Join Lines" keyboard shortcut in macOS is ctrl + j:
ctrl + j
The default value is 80. If you change this value higher than 80.
I prefer these because I want to use prettier as well.