Maybe I'm missing something basic... but is there ...
# compose-android
c
Maybe I'm missing something basic... but is there a "refactor to new file" keyboard shortcut? Something I do all the time is build my screen with like 10 composables, and then I want to refactor them into separate files. Right now creating each file and then copy pasting is tedius.
👀 2
âž• 1
m
You can use the move refactoring.
t
What I do is to select the code, cut and paste into the folder I want it. It creates a new file with the content. ps: it don't work always 😅
c
let me try those two techniques
c
Refactor > Move… is the action. I believe it’s mapped to F6
Still have to do it with each file you want to create though
a
So we can't move to a file that doesn't exist?
b
yes you can
its all under F6