Want to move a function to a separate file?
You can use the Move function quick fix (Alt-Enter) that creates a new file named after this function.
Or use the Move... refactoring if you want to select a different target file. #WebStormTippic.twitter.com/mFjKICaj30
What's your use case for moving class methods? Do you want to extract it from the class and then move to a separate file? Or do you want to move it to the superclass? If the latter, then you can use the Pull Members Up refactoring.
-
-
Typically that would be required while extracting common logic onto a new file such as a service or similar
-
So you would like to have an option to extract a method from a class to a global scope and then, if needed, move it to a separate file, right?
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.