EclipseCodeFormatter icon indicating copy to clipboard operation
EclipseCodeFormatter copied to clipboard

//@formatter:off not working for java in intellij 2016.1.4

Open maglkp opened this issue 9 years ago • 3 comments

@formatter:off, @formatter:on tags are not working in latest version on the plugin - the entire file is autoformatted. I'm using intellij 2016 but my colleagues reported the same issue on newer versions. I tried both block and line comments

My settings.xml seem to contain the proper values:

'enable formatter markers' setting in IDE is also set

maglkp avatar Apr 24 '17 08:04 maglkp

Works for me. IJ 2017.1.2

krasa avatar Apr 24 '17 09:04 krasa

You need

<setting id="org.eclipse.jdt.core.formatter.use_on_off_tags" value="true"/>

krasa avatar Apr 24 '17 09:04 krasa

Works. Awesome, thanks!

maglkp avatar Apr 24 '17 13:04 maglkp