Community
Participate
Working Groups
Build Identifier: 20110218-0911 I tried to disable the formatter for few lines: private static boolean checkOpaqueMaterials(Material... materials) { // TODO: Reorganize // @formatter:off return checkMaterials(materials, .... // @formatter:on } But the formatter ignores this, and formats the complete area. Reproducible: Always Steps to Reproduce: 1. Create code like the posted above. 2. Format the file or selected text (including the disabled area) 3. The formatter will format every line.
I cannot reproduce this using 3.7RC4 build. Can you please provide a specific code snippet? Please also attach your formatter profile (export from the preferences page). Btw, just to make sure, you have the "enable off/on tags" option checked in the formatter preferences and the tags configured as @formatter:on/off, right? This option is disabled by default.
Okay sorry, but didn't know, that there was an option to enable. Fabian