Eclipse Java格式化程序可以独立使用吗? [英] Can the Eclipse Java formatter be used stand-alone

查看:112
本文介绍了Eclipse Java格式化程序可以独立使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在eclipse之外使用eclipse附带的格式化程序?我想使用我使用eclipse配置的formatter.xml文件格式化一些java文件。有没有人有任何代码示例可以让我这样做?我也想使用这个独立的,所以使用的特定罐子会很好。

Is there a way to use the formatter that comes with eclipse, outside of eclipse? I would like to format some java files using my formatter.xml file that I have configured using eclipse. Does anyone have any code examples that would allow me to do this? I would also like to use this standalone, so the specific jars that are used would be nice.

推荐答案

显然你可以直接从命令行调用Eclipse的代码格式化程序

这篇关于Eclipse Java格式化程序可以独立使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆