Eclipse Java格式化程序的命令行 [英] Command line for Eclipse Java formatter

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

问题描述

我只是想知道是否有一个命令行工具eclipse java文件格式化。
或者如果有一个ant任务来执行它。

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.

在我的场景中,有2个java格式化程序,一个是android格式化程序,内部格式化程序。

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.

推荐答案

不知道你究竟要找什么,但如果猜测正确,它是这样的: http://www.peterfriese.de/formatting-your-code-using-the-eclipse-code -formatter /

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/

这里介绍如何使用命令行执行eclipse内置的格式器。您也可以启用每个项目的格式。

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

这篇关于Eclipse Java格式化程序的命令行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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