Why does Refactor > Move not work at all?

Answered

I am using IntelliJ IDEA for web app development. I have a large Javascript class that I am refactoring into smaller constituent classes. I am trying to select methods in the large class to me moved into one of the smaller classes. I tried using  Refactor > Move but it completely ignores the method(s) I am trying to move but instead presents random variables, methods, and properties that are completely in related to what I am trying to do. Why is this happening?

0
3 comments

Moving class methods is not supported at the moment. Kindly vote for https://youtrack.jetbrains.com/issue/WEB-34698 to receive updates on any advancements regarding this feature. Currently, you can only move file-level declarations.

0

Elena Pogorelova,

Does WebStorm support moving class methods?

 

0
As I wrote above, moving class methods is not supported.
0

Please sign in to leave a comment.