Eclipse的自动排版设置(format)

时间:2023-03-09 19:39:14
Eclipse的自动排版设置(format)
Java排版:    
    主要是在文件保存时自动触发排版等规则,省掉反复操作快捷键 Ctrl+Shift+F 的步骤。在
eclipse 中选择 Window-> Preferences->Java->Editors->Save Actions,做如下设置:
Eclipse的自动排版设置(format)
Eclipse的自动排版设置(format)
xml文件排版:
    主要是对 XML 文件做了排版设置。在 eclipse 中选择 Window-> Preferences->Android->Editors,
做如下设置:
Eclipse的自动排版设置(format) 
Eclipse的自动排版设置(format)