Idea Intellij include non-menu actions by default -
is there way ensure include non-menu actions
checkbox in run actions window turned on default?
i'm quite tired of having press Сtrl+shift+a twice run maven build (a non-menu action)!
there not. best best record simple macro (edit > macros) , record ctrl+shift+a twice. give name , map different shortcut in settings > keymap
if wanted move ctrl+shift+a mapping macro, in theory should record "action:findmacro" step followed alt+n select checkbox using n accelerator. bug surfaced when did that. when macro runs, "open tasks" dialog opens mapped alt+shift+n. appears when macro interpreter sees uppercase n, adds shift key playback. went in , manually edited 'n' 'n' , resolved issue. (i reported bug via idea-124492).
after working through that, issue surfaced. alt+n sequence getting sent quickly. needed pause between ''open find action dialog''. since unaware of way add pause in recorded macro (i opened feature request idea-124493 allow such) instead inserted few ctrl+a sequences hacked pause. since default behavior when opening find actions dialog previous search string selected, not end changing behavior.
if want use macro, close intellij idea. open file config/options/macro.xml
. (see document learn intellij idea config
directory is.) if file not present, create 1 structure:
<?xml version="1.0" encoding="utf-8"?> <application> <component name="actionmacromanager"> </component> </application>
then in <component>
element, insert macro:
<macro name="find non-menu action"> <action id="gotoaction" /> <shortuct text="control a" /> <shortuct text="control a" /> <shortuct text="control a" /> <shortuct text="control a" /> <shortuct text="alt n" /> </macro>
save , restart intellij idea. can remap ctrl+shift+a mapping via settings > [ide settings] > keymap > macros.
i found on system needed 4 of "pauses" via ctrl+a commands. 3 intermittently successful. right on edge of pause needed. may need increase those.
just side note in case helps you, can assign shortcut maven goal.
Comments
Post a Comment