javaintellij-ideaintellij-14intellij-15intellij-idea-2016

How do I create a hotkey for compound actions in IntelliJ IDEA?


Is it possible to create a script of multiple actions/tasks in IntelliJ IDEA and trigger them with a single hotkey/abbreviation?

I want to periodically do:

1 Reimport all maven projects
2 Build -> Rebuild Project
3 Run Application

Can I trigger these 3 actions with a single hotkey/abbreviation.

Thank you.


Solution

  • It sounds like you want macros, under Edit -> Macros.

    Once you've recorded a macro you can bind a shortcut to it in keymap settings.