Add intention for converting to block comment and vise versa
So #KT-23137 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
3351b00870
commit
e58d9c5507
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.intentions.ConvertBlockCommentToLineCommentIntention
|
||||
@@ -0,0 +1,3 @@
|
||||
fun test() {
|
||||
val foo = 1 /* comment */<caret>
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun test() {
|
||||
val foo = 1 // comment
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun test() {
|
||||
/* comment */<caret> val foo = 1
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
fun test() {
|
||||
// comment
|
||||
val foo = 1
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fun test() {
|
||||
/*
|
||||
|
||||
comment1
|
||||
|
||||
comment2
|
||||
|
||||
comment3
|
||||
*/<caret>
|
||||
val foo = 1
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fun test() {
|
||||
// comment1
|
||||
//
|
||||
// comment2
|
||||
//
|
||||
// comment3
|
||||
val foo = 1
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun test() {
|
||||
/**
|
||||
* comment
|
||||
*/<caret>
|
||||
val foo = 1
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun test() {
|
||||
// comment<caret>
|
||||
val foo = 1
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
fun foo() {}
|
||||
|
||||
|
||||
/*
|
||||
comment
|
||||
*/<caret>
|
||||
|
||||
|
||||
fun bar() {}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
fun foo() {}
|
||||
|
||||
|
||||
// comment
|
||||
|
||||
|
||||
fun bar() {}
|
||||
@@ -0,0 +1,7 @@
|
||||
fun test() {
|
||||
/*
|
||||
comment1
|
||||
comment2
|
||||
*/<caret>
|
||||
val foo = 1
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fun test() {
|
||||
// comment1
|
||||
// comment2
|
||||
val foo = 1
|
||||
}
|
||||
Reference in New Issue
Block a user