Email or username:

Password:

Forgot your password?
Gregory

That feeling when Idea (and Android Studio) drive you nuts so much you end up writing a plugin that pokes into private fields.

The problem: the ranking of autocomplete options in IntelliJ IDEs is non-deterministic regardless of your settings. It keeps some statistics on how much you use which symbols and ranks your completions based on that. This means that the same sequence of keystrokes, in the same context, sometimes produces different results.

I've had real bugs because of this shit.

2 comments
Gregory

If anyone is interested in such a plugin, I may add a proper settings UI and publish it.

There's another CompletionContributor in it that removes the units suggestions in Android XML layouts (like when you type `123` in an attribute, it would "helpfully" pop up with `123dp`, `123px`, `123mm`, etc).

Tagir Valeev

@grishka have you tried reporting the problem to JetBrains issue tracker? This is probably more robust way than hacking into the private fields, which may suddenly stop working or crash the completion completely because IntelliJ authors decide to rename or repurpose the fields.

Go Up