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?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
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:off, details here.