简体   繁体   English

如何为IntelliJ中的运行配置分配键盘快捷键?

[英]How to assign a keyboard shortcut to a run configuration in IntelliJ?

It seems you can assign a keyboard shortcut to almost everything else, but I can't see an option to do this for run/debug configurations? 看起来你可以为几乎所有其他东西分配键盘快捷键,但我看不到为运行/调试配置执行此操作的选项?

The "run configurations" are listed in the drop-down on the IntelliJ toolbar. “运行配置”列在IntelliJ工具栏的下拉列表中。 I'd like to setup a run configuration that can perform two maven tasks sequentially (jetty:stop and then jetty:run if you are interested), and assign a keyboard shortcut to this action. 我想设置一个可以顺序执行两个maven任务的运行配置(jetty:stop然后jetty:如果你感兴趣的话运行),并为这个动作分配一个键盘快捷键。

Any ideas? 有任何想法吗?

Finally! 最后! JetBrains has implemented this feature in IntelliJ IDEA v9. JetBrains已在IntelliJ IDEA v9中实现此功能

in Idea 8 anyway, you can specify a shortcut to any file menu item- even Maven goals. 无论如何,在Idea 8中,您可以指定任何文件菜单项的快捷方式 - 甚至是Maven目标。 Try settings- Keymap and look for the Maven goals. 尝试设置 - 键盘映射并查找Maven目标。 You will still probably need two keys. 您可能仍需要两把钥匙。 One for each action. 每个动作一个。

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

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