Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse command line formatting of Java code

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.

like image 516
user855 Avatar asked Jun 16 '11 20:06

user855


People also ask

How do I format Java code?

Window -> Preferences -> Java -> Editor -> Save Action -> Format source code (Format all lines & Imports)


1 Answers

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

like image 143
Kyle Avatar answered Oct 30 '22 20:10

Kyle