Inline Method doesn't work

Issue #1116 new
Scott Posey created an issue

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 (4)

  1. Scott Wells repo owner

    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.

  2. Randy Lutcavich

    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.

  3. Scott Wells 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.

  4. Log in to comment