IntelliJ:将特定配置的运行/调试映射到工具栏 [英] IntelliJ: Mapping running/debugging specific configurations to toolbar

查看:82
本文介绍了IntelliJ:将特定配置的运行/调试映射到工具栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谷歌搜索,搜索这个网站和随机实验没有产生任何结果,所以这里。



我正在研究一个包含不同Maven项目的项目,其中有几个需要运行以使系统工作。 (客户端,服务器等)单独启动它们有点不方便,但正如。



以下是您应该投票的问题:




  • IDEA-94341 一次启动多个运行/调试配置

  • < a href =http://youtrack.jetbrains.com/issue/IDEA-69968 =nofollow noreferrer> IDEA-69968 添加选项以指定运行/调试配置的键盘快捷键
  • IDEA-75078 可以创建工具栏运行特定运行配置的操作


Googling, searching this site and random experimentation yielded nothing, so here goes.

I'm working on a project containing different Maven projects where several of them need to run in order for the system to work. (Clients, servers, etc.) Launching them all individually is kind of inconvenient, but as this question suggests, there's no way to group them into a single configuration (nor does the situation seem to have changed since that answer).

Instead, I'm now wondering if it's possible to map running/debugging specific configurations to the toolbar, i.e. have a "Run Project 1" button, a "Debug Project 3-C" button, and so on instead of having to do the three-step process of opening the list, choosing a configuration and clicking run/debug for each needed component.

Does anyone know of a way to accomplish this?

解决方案

You can't have multiple configurations at the toolbar, but I can suggest a better alternative for running multiple configurations at once.

In IDEA 12 it's possible to run another configuration in the Before launch section. So you just add all the other configurations you want to be started with the current one in Before launch steps, then run single configuration and get all of them launched. Note that you can run Maven goals from the same configuration:


As you've noted, it will not work if the configuration continues to run as it will wait for the command to finish.

I'm afraid there is no easier way to do it right now except probably using the keyboard shortcut for the run popup menu.

Here are the issues you should vote for:

  • IDEA-94341 Launch Multiple "Run/Debug Configurations" At Once
  • IDEA-69968 Add option to assign keyboard shortcut to Run/Debug configurations
  • IDEA-75078 Make it possible to create toolbar action for running specific run configurations

这篇关于IntelliJ:将特定配置的运行/调试映射到工具栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆