Moving variable to field - cursor position after the operation


When I am moving / crating a field variable, the cursor afterwards stays with the declaration of the field variable on the top.
This really annoys me, becaue I have to manually go back to the point where I was before creating / moving the local variable to a field.

As far as I observed, this does not happen in Eclipse, but probably I am not aware of some settings in IntelliJ to "return to the code after variable declaration"

I hope I am clear describing my problem.

Thanks in advance in pointing out the solution.


Could you please provide a short video to illustrate it? I can't reproduce it with the Introduce Field refactoring. What IDEA version do you use?


IntelliJ IDEA 2016.1
Build #IU-145.258, built on March 17, 2016
JRE: 1.8.0_60-b27 x86
JVM: Java HotSpot(TM) Server VM by Oracle Corporation

I'll attach video later on, probably today. Thanks


I have prepared a video, how can I upload it here? Seems there is no way... It is 184 kB packed with 7zip.


Thanks Serge, I have used that way to upload :

The file name is

field.7z (184 kb) 100%


Please use Refactor | Extract | Field... instead (Ctrl+Alt+F).


Please sign in to leave a comment.