Eclipse的自动排版设置(format)
Java排版:
主要是在文件保存时自动触发排版等规则,省掉反复操作快捷键 Ctrl+Shift+F 的步骤。在
eclipse 中选择 Window-> Preferences->Java->Editors->Save Actions,做如下设置:
![](https://images2015.cnblogs.com/blog/809440/201509/809440-20150914105956429-629858520.png)
xml文件排版:
主要是对 XML 文件做了排版设置。在 eclipse 中选择 Window-> Preferences->Android->Editors,
做如下设置:
![](https://images2015.cnblogs.com/blog/809440/201509/809440-20150914105850336-160282872.png)
比昨天又近了一步!