Eclipse: auto format XML files on save

前端 未结 3 1271
醉梦人生
醉梦人生 2020-12-30 02:45

Is it possible to somehow auto-format when saving XML files in Eclipse?

I know it\'s possible to do it for Java files, but I would like it to happen for XML files as

相关标签:
3条回答
  • 2020-12-30 03:18

    It's been requested in WTP (bug 221696), but for now increasing the formatter's quality and speed in general has a higher priority.

    0 讨论(0)
  • 2020-12-30 03:24

    For eclipse auto-format try Ctrl+Shift+F

    0 讨论(0)
  • 2020-12-30 03:42

    I'm going to answer my own question using my own article about the fix that's about to be rolled out to ADT: http://www.androidpolice.com/2010/11/09/for-android-developers-next-version-of-eclipse-adt-to-include-auto-formatting-of-xml/

    Update: since r14, ADT can now finally do this. http://tools.android.com/recent/xmlformatter

    0 讨论(0)
提交回复
热议问题