- marked as enhancement
- removed version
Inline method refactoring for Apex
Every time I select Refactor->Inline on a method using the context menu I get
"Cannot perform refactoring. Caret should be positioned at the name of the element to be refactored"
This is an incredibly useful feature, particularly for refactoring tests to be more legible.
Comments (6)
-
repo owner -
Is this feature on the road map?
I’m thinking of choosing IlluminatedCloud 2 over Welkin Suite because of the refactorings, but it would a much easier sell if it had method inline. -
repo owner Randy, it's still very much on the roadmap, but realistically I don't see it happening for at least a few months. There are numerous other enhancements prioritized ahead of it (including some additional refactorings such as Change Method Signature and Move (static member)). Apologies but I would say it's not close enough to make a purchasing decision based on when that particular enhancement might arrive.
-
Thanks for the response. It's great to hear other refactorings are in the works as well.
-
repo owner - changed title to Inline method refactoring
-
repo owner - changed title to Inline method refactoring for Apex
- Log in to comment
This isn't implemented yet. At present the supported refactorings in IC are rename, extract variable/constant/method, inline variable/constant, and safe delete. I do plan to add support for other refactorings including method inlining.