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
-
-
This works for all top-level symbols (classes, functions, arrow functions, variables, etc), so it won't work for class methods.
-
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.
- Još 3 druga odgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.