Move curly bracket on another line - IntelliJ

Answered

I'm in IntelliJ, kolin project

i saw this feature on youtube but don't know how was done.

code example //////////////////////////////////////////

val time = measureTimeMillis { /here is my caret/ }
println("1")
println("2")

/Destination point of curly bracket/

/////////////////////////////////////////////////////////////////////

He pressed on something and right curly bracket moved  to Destination point of curly bracket/

0
3 comments

I don't think there is a built-in action like that in Intellij. Can you please show that video?

1

please look at --- https://drive.google.com/file/d/1SiCA7zf7nk4i0pRh5Z5HJrMhDLV1OUT1/view?usp=sharing

to  understand please look from 0min 55s to 1min 05s.  The miracle will happen at 1min 2s

0

It looks like the video was edited and the fragment where he moved the lines inside the block was cut.

1

Please sign in to leave a comment.