Code intention for Introduce Local Variable refactoring (and likely other refactorings)

Issue #2285 new
Jens Henrik Rauff Hansen created an issue

When using a method/class in Java its posible to generate a local variable when pressing alt+enter.

This seems not to be implemented in illuminated cloud.

This could be a nice feature, both when using a method/class to be able to press alt+enter, and have the option “Introduce local variable“. Also nice when writing a SOQL into a list.

Comments (7)

  1. Scott Wells repo owner

    Hi. This is currently possible using Ctrl+Alt+V / Cmd+Opt+V. I understand that you’re requesting a code intention to do the same thing, but I wanted to make sure that you knew that there was already a keyboard shortcut for introducing a local variable based on the current expression.

  2. Scott Wells repo owner

    No issues. I’m glad that was helpful information. I’m going to keep this open because I do think that having these refactorings available as code intentions can be useful.

  3. Log in to comment