简体   繁体   English

如何在IntelliJ IDEA中为复合操作创建热键?

[英]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? 是否可以在IntelliJ IDEA中创建包含多个动作/任务的脚本,并使用单个热键/缩写来触发它们?

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. 我可以通过一个热键/缩写来触发这3个操作吗?

Thank you. 谢谢。

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. 录制宏后,可以在键盘映射设置中将快捷方式绑定到该宏。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM