Implement intentions to add/remove braces to/from when entries #KT-12043 Fixed
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
when (a) {
|
||||
1 -> <spot>{
|
||||
b()
|
||||
}</spot>
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
when (a) {
|
||||
1 -> b()
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention adds braces to 'when' entries without braces.
|
||||
</body>
|
||||
</html>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
when (a) {
|
||||
1 -> <spot>b()</spot>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
when (a) {
|
||||
1 -> {
|
||||
b()
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention removes braces from 'when' entries with only a single expression.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user