Java代码的Eclipse命令行格式化 [英] Eclipse command line formatting of Java code

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

问题描述

是否有命令行方式来调用Eclipse的java代码格式化功能?
另外,有没有办法配置通过命令行格式化代码的方式?

Is there a command line way to invoke the java code formatting feature of Eclipse? Also, is there a way to configure the way it formats the code via command line?

目标是为整个程序设置一个通用的代码格式化机制在签发代码之前,将该步骤自动化。

The goal is to have a common code formatting mechanism for the entire team and automate that step prior to check in of code.

推荐答案

ajay尝试这篇文章,这里有一些分步说明。

ajay try this post, there are some step-by-step instructions included here.

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

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