angelozerr / ec4e

EditorConfig for Eclipse based on GenericEditor and tm4e
Eclipse Public License 1.0
9 stars 1 forks source link

.editorconfig configuration is not taken into account on new line #32

Open nagromc opened 6 years ago

nagromc commented 6 years ago

Maybe related to #31

Let's start with the following code.

public class Foo {

    public void bar() {
        int i = 0;
    }

}

My cursor is right after the opening curly brace at line 3 (after public void bar() {). I hit Enter.

At line 4, I expect to have two tabs before my cursor. Instead, I have one tab, and four spaces.

public class Foo {

    public void bar() {

        int i = 0;
    }

}

.editorconfig:

root = true

[*]
insert_final_newline = true
charset = utf-8
indent_style = tab
indent_size = 4
trim_trailing_whitespace = true