Move Function to File
Extract a function into a separate file.
Want to move a function to a separate file? You can use the Move function quick fix ⌥⏎ (macOS) / Alt+Enter (Windows/Linux) that creates a new file named after this function. Or use the Move... refactoring if you want to select a different target file.