开发者

Line feeds in Eclipse layout XML

开发者 https://www.devze.com 2023-02-10 16:55 出处:网络
When the new project wizard creates a skeleton layout, the XML is nicely formatted with linefeeds for easy review.But when I use the graphical layout form of the layout editor and drag an object into

When the new project wizard creates a skeleton layout, the XML is nicely formatted with linefeeds for easy review. But when I use the graphical layout form of the layout editor and drag an object into the 开发者_如何学Pythonlayout, the resulting XML is all on one line. How can I get the Eclipse graphical layout editor to insert linefeeds? I know I can do it manually, but that gets old real fast. I have tried all the reasonable options in Windows > Preferences > XML > Editor.


The preference is in preferences > Android > Editors, and selecting "Automatically format the XML edited by the visual layout editor" will format according to the XML editor preferences that you have set in XML > Editor.

0

精彩评论

暂无评论...
验证码 换一张
取 消