Does vscode have plug-ins or shortcut keys to compress the code?

how does vscode make the code one line, remove all spaces, and become more concise?

Mar.17,2021

Select the rows you want to merge, press Ctrl + Shift + P to bring up the command window, type join lines , and confirm that you can merge multiple lines.


Open preferences-> Keyboard shortcuts-> search joinLines; and then set your shortcut key and enter.

< hr >
my version is 1.23.1
Menu