IDEA-69648 Complete Current Statement: Correct 'for' completion

Provided completion for standalone 'for' keyword
This commit is contained in:
Denis Zhdanov
2011-05-13 18:17:23 +04:00
parent 9a3bb4c453
commit f4469717d7
4 changed files with 91 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
public class Foo {
void test(int i) {
for<caret>
}
}

View File

@@ -0,0 +1,6 @@
public class Foo {
void test(int i) {
for (<caret>) {
}
}
}

View File

@@ -201,6 +201,8 @@ public class CompleteStatementTest extends EditorActionTestCase {
}
public void testNoUnnecessaryEmptyLineAtCodeBlock() throws Exception { doTest(); }
public void testForStatementGeneration() throws Exception { doTest(); }
private void doTestBracesNextLineStyle() throws Exception {
CodeStyleSettings settings = CodeStyleSettingsManager.getSettings(getProject());