Eclipse has a powerful code formatter for Java, but I am wondering whether it is possible to define a code format on a per file basis, instead of defining the format for all java files?
Thanks!
Eclipse has a powerful code formatter for Java, but I am wondering whether it is possible to define a code format on a per file basis, instead of defining the format for all java files?
Thanks!
Don't know how to specify a formatter per-file, but there is at least a way to selectively turn formatter off so it doesn't mess up existing formatting, see here:
In short, you can configure Eclipse to look for comments like @formatter:on
and @formatter:off
, details here.