This morning with MyEclipse format JSP, found unable to remove blank lines, and found that indentation is not correct, some indentation, some indentation, and then found can be set
The following can solve the problem, any other need to check the English meaning attached to the article:
HTML Source, HTML, Preferences, MyEclipse Enterprise Workbench, Window, tick "Clear All Blank Lines" to remove the blank. Shortcut keys for use: Ctrl+shift+f
1. 1set width per line
line width set to four characters.
Each property of the 1.2 tag is displayed on a separate line :
Select Split multiple attributes each on a new Line
1.3 tag Terminator does not occupy a single line :
uncheck Align final bracket in multi-line element tags
1.4 Remove all empty lines :
Select the Clear all blank lines
1.5 Add a space before the label Terminator :
Check Insert whitespace before closing empty end-tags
1.6 indent uses a space instead of tab:
Check Indent using spaces
1.7 Setting the indent width
indentation size is set to 4, that is, 4 spaces are indented.
MyEclipse Editor Format code go blank