ATOM编辑器中,已有XML的字符串:
需要格式化,方便查看。
搜:
ATOM editor xml formatter
参考:
![atom packages command pallete toggle](https://www.crifan.com/files/pic/uploads/2016/08/atom-packages-command-pallete-toggle.png)
找到后,点击去安装:
![is installing for xml formatter](https://www.crifan.com/files/pic/uploads/2016/08/is-installing-for-xml-formatter.png)
结果此处安装失败:
![installing xml formatter failed show output](https://www.crifan.com/files/pic/uploads/2016/08/installing-xml-formatter-failed-show-output.png)
点击看错误详情:
![gpy error not ok](https://www.crifan.com/files/pic/uploads/2016/08/gpy-error-not-ok.png)
然后对于搜索出来的另外那个:
去点击安装,安装成功了:
![click formatter then installed ok](https://www.crifan.com/files/pic/uploads/2016/08/click-formatter-then-installed-ok.png)
又找到别的:
最后,是安装成功了:
![atom-beautify installed show ok](https://www.crifan.com/files/pic/uploads/2016/08/atom-beautify-installed-show-ok.png)
然后去使用:
Atom-》Packages-》Atom Beautify-》Beautify
![atom package atom-beautify beautify](https://www.crifan.com/files/pic/uploads/2016/08/atom-package-atom-beautify-beautify.png)
然后提示:
atom beautify could not find a supported beautifier for this file
![atom beautify could not find a supported beautifier for this file](https://www.crifan.com/files/pic/uploads/2016/08/atom-beautify-could-not-find-a-supported-beautifier-for-this-file.png)
然后保存为xml后,再去格式化,即可:
![use atom beautify xml file ok](https://www.crifan.com/files/pic/uploads/2016/08/use-atom-beautify-xml-file-ok.png)
转载请注明:在路上 » [已解决]ATOM编辑器中安装XML格式化工具