mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
JavaEnterInTextBlockHandler: separate enter handler for text blocks (IDEA-223911)
1. auto-formatting in blank text block 2. proper caret offset in text block with content 2. semicolon after block in simple cases 3. disable insert of closing quotes in case when parser appended next text block open quotes to the current text block GitOrigin-RevId: cb2bdf293dfc3a18d1aab055d379b9e92f0cff2e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ce17629571
commit
d3618f7276
+8
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
|
||||
void test() {
|
||||
String block = """<caret>
|
||||
text""";
|
||||
}
|
||||
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
class Test {
|
||||
|
||||
void test() {
|
||||
String block = """
|
||||
<caret>
|
||||
text""";
|
||||
}
|
||||
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
|
||||
void test() {
|
||||
String block = """<caret>text
|
||||
""";
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
|
||||
void test() {
|
||||
String block = """
|
||||
<caret>text
|
||||
""";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
|
||||
void test() {
|
||||
String block = """<caret>""";
|
||||
}
|
||||
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
|
||||
void test() {
|
||||
String block = """
|
||||
<caret>""";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
|
||||
void test() {
|
||||
String block = """<caret>"""
|
||||
}
|
||||
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
|
||||
void test() {
|
||||
String block = """
|
||||
<caret>""";
|
||||
}
|
||||
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
class Test {
|
||||
|
||||
void foo() {
|
||||
String block = """
|
||||
bar<caret>
|
||||
foo
|
||||
""";
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
|
||||
void foo() {
|
||||
String block = """
|
||||
bar
|
||||
<caret>
|
||||
foo
|
||||
""";
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
class Test {
|
||||
void test() {
|
||||
String block = """<caret>
|
||||
|
||||
|
||||
|
||||
""";
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
void test() {
|
||||
String block = """
|
||||
<caret>
|
||||
|
||||
|
||||
|
||||
""";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user