(Android Studio) Suggest variable names on top of outer classes in quick completion?

In the following scenario, I want to quickly autocomplete datastore, but Android Studio still offers 2 more options above it. This is usually even more, depending on the name of the variable.

Is it possible to prioritize locally declared variables over external classes, so that I get the datastore suggested first in the example, not Datastore, DataOutputStream (classes) and then datastore (variable)?

For reference, this is a popup that appears when entering data and press CTRL + Space (Windows) in Android Studio.

AutoFill Offers

+4
source share
1 answer

, , , CTRL + Space, "datast", . "Datast", Android Studio Datastore.

- , .

0

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


All Articles