Friday, October 17, 2014

How to Use Eclipse Code formatter from your own Java code?

I am looking a solution how Eclipse code formatted used formatting the code in eclipse ? Can we use same for-matter for our own use and i found the answer is yes .
If you will use Maven it will be great so need following dependency in pom.xml file

Now here is the Java code for formatting the code

Here you can check why i added

If you will not add above code and format a code which contain generics formatting will not work .

No comments:

Post a Comment