Java: Include trailing comments into selected fragment when extracting method (IDEA-180172)

This commit is contained in:
Pavel Dolgov
2017-12-05 16:15:51 +03:00
parent 93fa2b442d
commit fc25d52296
7 changed files with 91 additions and 12 deletions
@@ -0,0 +1,10 @@
class CommentAfterSelectedFragment {
foo(boolean debugMode) {
int i= 0;
<selection>
if (debugMode) {
i = 1;
}</selection> /* comment */
System.out.println(i);
}
}