I am developing with IntelliJ. In this project, I need to run 3 servers.
Is there a way to create a shortcut to :
Stop all those servers in one click or keyboard shortcut
Optionally, restart them.
Thanks.
There doesn't seem to be a direct method to do this in IntelliJ, but if you can stop each one from a script, then you could just write a script and run it from IntelliJ. Personally, I'd just go to the terminal and run the script rather than configuring it directly in IntelliJ (which also has an embedded terminal, btw).
Related
I run Spring Boot apps in different IntelliJ IDEA windows and sometimes I have to follow a request through multiple micro-services. So I have to go to each Idea window and press Clear All.
Is there a command that clears logs in all instances of Idea at once?
Every time a new instance of the run/debug configuration is launched, IntelliJ IDEA checks the presence of the other instances of the same run/debug configuration, and displays a confirmation dialog.If Allow running in parallel checkbox is selected, it is possible to launch a run configuration multiple times in parallel instead of rerunning it. But is doesn't work on my computer.
I think it's because I click DO NOT SHOW THIS DIALOG IN THE FUTURE in the confirmation dialog.It change the RUN turn to RERUN.
I need some way to find the confirm dialog or the way to parallel run the same program.
THANK YOU.
My IDE is WebStorm, but I think it should be the same as IDEA. You can try using:
Menu bar -> Run -> Edit configurations... -> Allow parallel run
I am developing client side of my application using IntelliJ IDEA. For debugging I need to run multiple clients.
I guess running same projects in different windows is not possible with IntelliJ IDEA. So how do I run multiple clients for debugging?
You can run or debug the same Run/Debug configuration in IntelliJ IDEA several times if you enable the Allow parallel run checkbox.
You will see a tab per instance in the Run or Debug tool window.
In the previous IDE versions this checkbox was called Single instance only and its effect was reversed.
Lets say I have run-config1 and run-config2 setup for my project in IntelliJ.
I know there are ways of adding custom shell code to be perfomed before/after a build run, but that's not what I want to do.
Is there a way of calling them from the embedded terminal?
As of IntelliJ IDEA 14 there is no such way. You can write a plugin for IntelliJ IDEA that will handle a command like "idea.sh run configuration-name" and start the run configuration in the existing instance, but this is fairly non-trivial.
Where can I actually launch an external tool in IntelliJ?
I know where to set up the external tool, and I've that done, but I cannot see where to launch it anywhere!
I don't see it from the Run menu, nor from any right-click menu.
You can run anything from the command line using the Command Line Tool Support plugin from JetBrains. See details here.
On menu Tools ⮕ External Tools:
In IntelliJ IDEA, in your run/test configurations (Run -> Edit Configurations) you have the choice of running an external tool 'before launch'. You can do this by opening up the run configuration menu, creating a new run configuration, and, down the bottom, adding a 'Run External Tool' option.
You can then add an external tool to be ran upon launch. You can run other programs or execute command line commands.
When you want to run the external tool, simply click the run button up the top of IntelliJ's main screen. If you want the external tool to run without the project compiling, simply remove the 'Make Project' and run project in the run configuration.