i remember there being a way of marking a section of code in eclipse (special comment or annotation?) which made the autoformatter ignore that section. Or I may have drempt this…
Used mainly when I have strings which wrap onto several lines and i don’t want the autoformatter to rearrange this.
Since eclipse 3.5 (or 3.6) this is possible:
– Go to project properties — Java Code Style — Formatter — Edit…
– choose the tab marked “Off/On Tags”,
– include the tags in comments in your source code, like