1. Configure the Html template
(Configure other types of file template, the same, simple description, convenient experience) write a template code, such as:
When the configuration is complete, click Apply in the lower right corner
2. Set the indentation and maximum number of characters in a line
(Same for other types of files)
2.1 the indentation
File > Settings > search code style -> find HTML -> Tabs and charactor
2.2 Maximum number of characters in a line, for example, 80
File > Settings > Search code style -> find HTML -> Other > Right margin(columns): 80
2.3 Cancel the original indentation
File > Settings > Search code style -> find code style -> ‘Detect and use existing File indents for editing’ unchecked
When the configuration is complete, click Apply in the lower right corner
3. Set the indentation of header/body in HTML
When you press HTML -> Enter -> to write the header label in the HTML file, you find that the header is not indented as expected, as shown in the following figure.
Modify method: File > Settings > Search code style -> find HTML -> Other > Do not indent children if tag cleared When the configuration is complete, click Apply in the lower right corner
Revised:
4. Set the length of each line to 80 characters
File > Settings > Search code style -> find code style -> Right Margin (columns): 80, check the following Wrap on typing. When the configuration is complete, click Apply in the lower right corner
The first time to write, if there is any wrong, welcome correction, discussion, improvement, learning one-stop service #