Better caret position after Insert curly braces around variable (KT-28739)
Introduce helper class and move caret to it's original position. #KT-28739 Fixed
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
val x = 4
|
||||
val y = "${x}"
|
||||
val y = "${<caret>x}"
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
val x = 4
|
||||
val y = "something${x}.somethingelse"
|
||||
val y = "something${<caret>x}.somethingelse"
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
val x = 4
|
||||
val y = "$x${x}$x"
|
||||
val y = "$x${<caret>x}$x"
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// IS_APPLICABLE: true
|
||||
fun foo() {
|
||||
val x = 4
|
||||
val y = """$x${x}$x"""
|
||||
val y = """$x${<caret>x}$x"""
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
val test = "some"
|
||||
val other = "text $test<caret> text"
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
val test = "some"
|
||||
val other = "text ${test<caret>} text"
|
||||
@@ -0,0 +1,2 @@
|
||||
val test = "some"
|
||||
val other = "text $te<caret>st text"
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
val test = "some"
|
||||
val other = "text ${te<caret>st} text"
|
||||
Reference in New Issue
Block a user