mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
IDEA-69972 Smart Complete Statement: Leave code block if the action is called for the complete statement
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
public class Foo {
|
||||
{
|
||||
foo(x);
|
||||
<caret>
|
||||
}
|
||||
<caret>
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
public class Foo {
|
||||
public void foo() {
|
||||
String s = "abcdef";
|
||||
<caret>
|
||||
}
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
public class Foo {
|
||||
void test(int i) {
|
||||
if (i > 1) {
|
||||
i <caret>= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
public class Foo {
|
||||
void test(int i) {
|
||||
while (i-- > 1) {
|
||||
i <caret>= 1;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
public class Foo {
|
||||
void test(int i) {
|
||||
while (i-- > 1) {
|
||||
i = 1;
|
||||
}
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
public class Foo {
|
||||
void test(int i) {
|
||||
if (i > 1) {
|
||||
i = 1;
|
||||
}
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,6 @@
|
||||
public class Test {
|
||||
public void foo() {
|
||||
int x = 2;
|
||||
<caret>
|
||||
}
|
||||
<caret>
|
||||
}
|
||||
Reference in New Issue
Block a user