wmyywm / eclipse-code-formatter-intellij-plugin

Automatically exported from code.google.com/p/eclipse-code-formatter-intellij-plugin
0 stars 0 forks source link

formatter.use_on_off_tags #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have a problem with formatter ON/OFF.

I would like to off the formatter with the same rules as "CHECKSTYLE:OFF" and 
continue formatting after "CHECKSTYLE:ON", but formatter encountered 
"CHECKSTYLE:OFF" after this formatter stop and does not like to continue the 
formatting process after "CHECKSTYLE:ON".

my formatter settings:
<setting id="org.eclipse.jdt.core.formatter.disabling_tag" 
value="CHECKSTYLE:OFF"/>
<setting id="org.eclipse.jdt.core.formatter.enabling_tag" 
value="CHECKSTYLE:ON"/>
<setting id="org.eclipse.jdt.core.formatter.use_on_off_tags" value="true"/>

Thanks a lot!

You did good things!

Original issue reported on code.google.com by hibisss...@gmail.com on 3 Aug 2012 at 3:19

GoogleCodeExporter commented 9 years ago
could not reproduce, it just works.

http://www.screenr.com/NFu8

Original comment by vojta.kr...@gmail.com on 3 Aug 2012 at 8:20

GoogleCodeExporter commented 9 years ago
You're absolutely right! it's my stupid fault!

I had two place with <setting id="org.eclipse.jdt.core.formatter.enabling_tag" 
and one of them override another.

Thanks a lot!

Original comment by hibisss...@gmail.com on 7 Aug 2012 at 1:38

GoogleCodeExporter commented 9 years ago
good :-)

Original comment by vojta.kr...@gmail.com on 7 Aug 2012 at 1:39