Force Android Studio show light bulb

Let's say I type the following field

field = "I am field";

In Eclipse, as soon as I find the mouse on field, it shows me a list of options from which I can choose create local variable field.

In Android Studio, a light bulb is a headache for me. Sometimes it appears quickly, sometimes it appears forever.

Light bulb example

Is there any way to make it appear?

+4
source share
1 answer

Are you talking about use Alt + Enter?

This link may help: https://www.jetbrains.com/idea/help/keyboard-shortcuts-you-cannot-miss.html

Pressing Alt + Enterleads to a drop-down menu with correction parameters in this case:

enter image description here

+10

Source: https://habr.com/ru/post/1584584/


All Articles