In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how vscode beautifies the code. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
How does vscode beautify the code?
First of all, the figure shows the effect of an open css file that does not wrap lines. The whole file has only one line, and formatting has no effect.
Formatting means that code that branches but does not indent and is not properly spaced becomes appropriate. VSCode comes with code formatting.
Open File-> preferences to open the settings panel.
As shown in the figure, search format to find options related to formatting. Copy the settings you want to change to the right to modify them.
If you want to beautify the code (line wrapping), first click the extension button on the left, then search for Beautify in the extension store, and then download the first plug-in.
Reload VSCode after installation, press F1 to open command, search Beautify, and click Beautify file to beautify the entire file.
As shown in the picture, it is the effect of beautification. The code is automatically wrapped and formatted. This beautification operation supports source code in multiple formats.
Thank you for reading! This is the end of the article on "how to beautify the code in vscode". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.