SortContentAction: more accurate \n placement in presence of EOL comments: IDEA-198267

This commit is contained in:
Roman.Ivanov
2018-09-10 19:04:32 +07:00
parent edbeda58f1
commit 8eb4c7c109
4 changed files with 21 additions and 5 deletions
@@ -9,6 +9,5 @@ public enum OSType {
WIN //after win
// win
;
}
@@ -0,0 +1,11 @@
// "Sort content" "true"
enum Attribute {
CenterYWithinMargins, // 20
LastBaseline,
Width // 7
; // 11
void foo() {
}
}
@@ -0,0 +1,9 @@
// "Sort content" "true"
enum Attribute {
Width<caret>, // 7
CenterYWithinMargins, // 20
LastBaseline; // 11
void foo() {}
}