Eclipse xml formatter setting for android
16lz
2021-01-23
Android里使用很多xml 定义layout,我们都习惯在Eclipse里 ctrl + shift + F 格式化代码,对xml文件当然也想这么做。
但默认的效果看着很乱,实际只要改一下Eclipse设置就可以。如下:
菜单Window->preferences->XML->XML Files->Editor
1. 勾上Split multiple atrribute each on a new line
2. 选择Indent using spaces
Indentation size设为4
author:99fang mobile xjy
http://www.99fang.com/bj/
更多相关文章
- Android滑动菜单的简单实现(SlidingPaneLayout)
- android 自定义标题栏和自定义下拉选项PopupWindow
- Android:绘制自定义视图
- AndroidManifest--定义android清单
- android中自定义控件的属性