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.


Related Resources

Add New Dependencies
Add New Dependencies
WebStorm can help you add a new dependency.
Add console.log Faster
Add console.log Faster
Use Postfix Completion to quickly add console.log.
Convert to async Function
Convert to async Function
Quickly convert a function that returns a Promise to an async function.