Command line for Eclipse Java formatter [duplicate]

只愿长相守 提交于 2019-12-09 06:39:57

问题


I just wonder if there is a command line tool for eclipse java file formatter. Or if there is an ant task to execute it.

In my scenario, there are 2 java formatters, one is for android formatter, the other is our internal formatter.

So we have to change it between these two formatter.


回答1:


Not sure what exactly you are looking for but if im guessing correctly it is something like this: http://www.peterfriese.de/formatting-your-code-using-the-eclipse-code-formatter/

This describes how to execute the eclipse built in formatter using the command line. You can also enable the format per project.



来源:https://stackoverflow.com/questions/5277162/command-line-for-eclipse-java-formatter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!