Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ: Mapping running/debugging specific configurations to toolbar

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?

like image 913
BambooleanLogic Avatar asked Dec 12 '25 07:12

BambooleanLogic


1 Answers

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:

enter image description here


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
like image 143
CrazyCoder Avatar answered Dec 14 '25 09:12

CrazyCoder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!