If I have a simple one line function e.g. `fun foo...
# intellij
t
If I have a simple one line function e.g.
fun foo() = "hello"
And I want to change this to have a body, because I need to add more lines. e.g
Copy code
fun foo(): String {
    return "hello"
}
Is there a refactoring that can do it for me?
k
did you try alt+enter?
f
image.png
t
Thanks. Much appreciated
👍 1