Try Plugins -> XML Tools -> Pretty Print (libXML) or (XML only - with line breaks Ctrl + Alt + Shift + B )
(尝试插件 - > XML工具 - >漂亮打印(libXML)或(仅限XML - 使用换行符Ctrl + Alt + Shift + B ))
You may need to install XML Tools using your plugin manager in order to get this option in your menu.
(您可能需要使用插件管理器安装XML Tools才能在菜单中获得此选项。)
In my experience, libXML gives nice output but only if the file is 100% correctly formed.
(根据我的经验,libXML提供了很好的输出,但前提是文件是100%正确形成的。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…