Move selected Kotlin function(s) to a separate new file in IntelliJ IDEA


#1

I like the ‘move class to own file’ functionality of ReSharper. Is such functionality available for Kotlin in IntelliJ? I.e. to move selected function to its own file?


#2

Yes. Press F6 (Refactor | Move) and select the “To file” option.