Add intention to indent a raw string #KT-9943 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
a2d45062c2
commit
a7110a1517
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.intentions.IndentRawStringIntention
|
||||
@@ -0,0 +1,6 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun test() {
|
||||
val foo = <caret>"""foo
|
||||
bar
|
||||
baz"""
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun test() {
|
||||
val foo = <caret>"foo"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// IS_APPLICABLE: false
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
val foo = <caret>"""foo
|
||||
bar
|
||||
baz""".trimIndent()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
val foo = <caret>"""foo
|
||||
bar
|
||||
baz"""
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
val foo = """
|
||||
foo
|
||||
bar
|
||||
baz
|
||||
""".trimIndent()
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun test() {
|
||||
val foo = <caret>"""foo"""
|
||||
}
|
||||
Reference in New Issue
Block a user