android - Eclipse AndroidManifest.xml 格式

标签 android xml eclipse formatting

当我使用 Ctrl+Shift+F 格式化 xml 时,结果是这样的:

This is the result of Ctrl+Shift+F

但是如果有东西可以制作这样的xml,那就太好了:

But I want to have this

有没有办法在eclipse上格式化格式化?

最佳答案

对于 XML,您应该转到 Window->Preferences->HTML Tidy-> XML 并选择“Input XML”

如果你喜欢像我一样在单独的行中查看每个属性,你应该检查 Wrap 属性值和 Indent 属性复选框

If you like to see every attribute in separate line like me, you should check Wrap attribute values and Indent attributes checkboxes

关于android - Eclipse AndroidManifest.xml 格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6344330/

相关文章:

java - 如何在eclipse中显示日文字符

android - 双向数据绑定(bind)错误 : cannot resolve a setter for boolean property

java - 位图转换 : Creating bitmap that excludes transparent sides from transparent bitmap

c# - 如何使用 C# 动态更改 XML 节点的属性

ios - 使用 Swift 和 KissXML 创建 XML : example?

python - 从 XML python 中检索数据

eclipse - 如何为 Eclipse 安装 Pig 插件

java - eclipse : Target "Unknown" in android device chooser

c# - 在 Java 中从字节获取 int,首先在 C# 中编码

基于屏幕分辨率的Android UI设计