How to disable these context actions?
When I want to create a new method from a usage I just typed, I used to invoke Context Actions and execute the first suggestion. Since a few minor versions, though, two options were added (or moved up) which I don't want to use:
It doesn't always happen, because not all words I type happen to be available public static methods, but it happens often enough to be a real bother (about 80~90% of the time). It's even more frustrating because it doesn't always happen, because I have to look at the popup to decide if I have to down-arrow twice or not.
I don't understand why these two options are here in the first place, because if I wanted to actually import or qualify a static method, I'd invoke Code Completion, not Context Actions.
How do I get rid of these two actions from the Context Actions, or at least place 'Create method' at the top?
I already tried (or rather, have been using for a while) the Machine Learning plugin, but it seems it doesn't affect the Context Actions.
Please sign in to leave a comment.
@Mark Jeronimus Hi, there is no way to disable these two static import actions.
I have created an issue for you here and please vote for it:
https://youtrack.jetbrains.com/issue/IDEA-314197/Create-method-quickfix-should-have-higher-priority-than-Import-static-method-and-Qualify-static-call-action
Also, the IDEA should not show the static import action for `adjust()` too:
https://youtrack.jetbrains.com/issue/IDEA-314194/IDEA-advises-inaccessible-static-methods-in-Import-static-method-quick-fix