3

Is there a program (Java program) to format code according to Java code format conventions?

Does an Ant task exist?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Tim
  • 440
  • 1
  • 5
  • 12

2 Answers2

0

Eclipse will automatically do this for you if you tell it to. or at least it will do an awful lot of it. I doubt it would rename variables to meet the coding standard though.

Click on the properties for you project and look at the options under "Java Code Style"

You will have to open each file individually and save it though.

You can also install CheckStyle to enforce coding standards.

Omar Kooheji
  • 54,530
  • 68
  • 182
  • 238
0

There is an Ant external task for Jalopy.

Hope this helps

рüффп
  • 5,172
  • 34
  • 67
  • 113