Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@formatter:off & @formatter:on do not seem to work in 15.2.132.637.2 #64

Closed
vanniktech opened this issue Sep 2, 2015 · 1 comment
Closed

Comments

@vanniktech
Copy link

Hey,

the formatter off & on do not seem to work in IntelliJ14.

In my configuration file I've configured

<setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/>
<setting id="org.eclipse.jdt.core.formatter.enabling_tag" value="@formatter:on"/>

However if I wrap code with those tags it still does get formatted.

// @formatter:off
@ParameterizedRobolectricTestRunner.Parameters(name = "InitialConfiguration = {0}")
public static Collection<Object[]> data() {
    return Arrays.asList(new Object[][]{
            // Some entries
    });
}
// @formatter:on

I'm using Eclipse Code Formatter Version 15.2.132.637.2

@krasa
Copy link
Owner

krasa commented Sep 17, 2015

you need also:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants