有个插件叫做XML Tools
里面有个功能就是用来格式化输出XML的
Pretty print(XML only - with line breaks) Ctrl+Alt+Shift+B
Search Highlighter (On/Off)