Add intention to indent a raw string #KT-9943 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-04-19 12:07:29 +03:00
committed by Mikhail Glukhikh
parent a2d45062c2
commit a7110a1517
18 changed files with 171 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.intentions.IndentRawStringIntention
+6
View File
@@ -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"
}
+7
View File
@@ -0,0 +1,7 @@
// IS_APPLICABLE: false
// WITH_RUNTIME
fun test() {
val foo = <caret>"""foo
bar
baz""".trimIndent()
}
+6
View File
@@ -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"""
}