eclipse html 格式化

有的时候想使用eclipse格式化html代码,接下来就是格式化html代码的eclipse设置
1.点击windows选择perferences
eclipse html 格式化
2.在搜索框内写入html
3.点击editor
4.eclipse html 格式化
5.点击ok
6.打开想要格式化的文件
7.在文件的代码里,右键点击,选择source,选择format,
8.ctrl+shift+F,也行,但是有的时候会失效,不知道为啥