SortContentAction: fix \n placement, better layout

This commit is contained in:
Roman.Ivanov
2018-08-30 11:33:05 +07:00
parent a816ff3861
commit 2de5249609
12 changed files with 78 additions and 56 deletions
@@ -1,13 +1,13 @@
// "Sort content" "true"
public enum OSType {
LINUX// linux
LINUX // linux
,
MAC//mac
MAC //mac
,
WIN//after win
// win
WIN //after win
// win
;
@@ -4,6 +4,6 @@ public enum Enum {
A,
B,
C// foo
C // foo
;
}
@@ -7,8 +7,8 @@ public class Main {
new String[]{
"aaa", // a
"bbb",
"ccc"/* c */, "dd", // d
"ff"// f
"ccc" /* c */, "dd", // d
"ff" // f
};
}
}
@@ -7,7 +7,7 @@ public class Main {
new String[]{
"aaa", // a
"bbb", // b
"ccc"/* c */
"ccc" /* c */
};
}
}
@@ -0,0 +1,11 @@
// "Sort content" "true"
import java.util.*;
public class Main {
private void test() {
String[] s = new String[]{"a", "b",
"c" //simple end comment
};
}
}
@@ -7,6 +7,6 @@ public class Main {
new String[]{
"aaa", // a
"bbb", // b
"ccc"/* c */};
"ccc" /* c */};
}
}
@@ -11,7 +11,7 @@ public class Main {
"Martinez", "Miller", "Moore", "Robinson", "Rodriguez", "Smith", "Taylor",
"Thomas", "Thompson", "Walker", "White", //B
"Williams", "Wilson", "Young"//Z
"Williams", "Wilson", "Young" //Z
};
}
@@ -10,8 +10,7 @@ public class Test {
"100+10",
"100+3..999",
"100..999"//simple end comment
"100..999" //simple end comment
//simple end comment
};
}
@@ -10,10 +10,10 @@ public class Main {
// 4
"bar",
"baz"// 7
// 8
"baz" // 7
// 8
,
"foo"/*3*/ // 2
"foo" /*3*/ // 2
// 5
@@ -10,7 +10,7 @@ public class Main {
"aaa",
"bbb",
"ccc"//comment
"ccc" //comment
);
}
}
@@ -0,0 +1,10 @@
// "Sort content" "true"
import java.util.*;
public class Main {
private void test() {
String[] s = new String[]{"a",<caret> "c"//simple end comment
, "b"};
}
}