开发者

Keyboard shortcut to run maven goals in Intellij IDEA?

开发者 https://www.devze.com 2023-03-13 02:43 出处:网络
Is there a way to开发者_高级运维 run a maven goal using keyboard shortcut in Intellij IDEA?Settings | Keymap | Maven Goals (or right click on the Maven goal in the IDEA Maven Projects panel and select

Is there a way to开发者_高级运维 run a maven goal using keyboard shortcut in Intellij IDEA?


Settings | Keymap | Maven Goals (or right click on the Maven goal in the IDEA Maven Projects panel and select Assign Shortcut...)


You can associate a Maven goal with a keyboard shortcut and execute commonly-used goals with a single key-stroke. In a Maven project, its goals appear under the Maven goals node in the Keymap dialog.

To associate a keyboard shortcut with a Maven goal :

  1. In the Maven Projects tool window, right-click the desired goal.
  2. On the context menu, choose Assign Shortcut. Keymap dialog appears.
  3. Configure keymap, as described in the section Configuring Keyboard Shortcuts.


Pretty old question but still of interest (at least for me):

So, for IntelliJ 2017 go to Preferences | Keymap then assign your shortcut to Plug-ins | Maven Integration | Execute Maven Goal

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号