Open File->Preferences to open the settings panel
Search for format to find and format it related options. Copy the settings you want to change to the right and modify them.
(Recommended tutorial: vscode tutorial)
If you want to beautify the code (line wrap), first click the extension button on the left , then search for Beautify in the extension store, and then download the first plug-in.
After installation, reload VSCode, press f1 to open the command, search for Beautify, and click Beautify file to beautify the entire file.
For more programming-related content, please pay attention to the Programming Introduction column on the php Chinese website!
The above is the detailed content of How vscode formats js/css code. For more information, please follow other related articles on the PHP Chinese website!