This is a plugin for IntelliJ IDEs with Quick Fix
action which applies the top intention/inspection
because life is too short to press alt+enter, enter
when you already know it will do the right thing.
The best shortcut for Quick Fix
is F1
because it's a single key and located near F2 - Next Highlighted Error
.
But you might need to un-assign F1
from the Context Help
action which is mostly useless anyway.
You can configure Quick Fix
to re-prioritise intentions by using the quickfix-plugin.intentionPriorities
key in IDE Registry
(use "Main Menu -> Help -> Find Action..." and type "registry").
For example, *;Introduce import alias;Introduce local variable
will push "Introduce import alias" and "Introduce local variable"
inspections to the end of the QuickFix
priority list, so they are less likely to be invoked.
Another option is to disable inspection (alter+enter, right
and choose "Disable").
Silent Code Cleanup
action?It fixes all problems in the current file. This is often too much.
It also only fixes errors/warnings and doesn't apply inspections, e.g. it won't apply Fix typo
intention.