简体   繁体   中英

Eclipse: how to format all xml files in workspace?

I greatly appreciate the functionality of Eclipse to apply code formatter to all projects in workspace, however it works only for Java files, I'd like now to apply formatter to all XML files. And there are a pack of them: pom's , Spring configs etc.

I've found no build-in format that could do the task for all selected projects. So, my question, do you know an external plugin that would do the task (possibly with own format settings that could be exported/imported)? Or I have missed an existing option?

Here's what I did: File Search for all files with file name pattern *.xml. In Search results, select all and then right click, Source -> Format. I'm on Eclipse Luna 4.4.2, not sure how far back this feature goes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM