How to Clear All in all IntelliJ IDEA windows? - intellij-idea

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?

Related

How to run the same project multiple times in IntelliJ IDEA?

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.

HP UFT and LR are blocking execution of other IDEs

IntelliJ IDEA Community Edition and Eclipse cannot be started after UFT and LR are installed on Windows 8.1. These applications can be started only as an administrator user. When I try to execute as a standard user I don't get any error message, seemly nothing happens, application is not started. Applications can be executed as administrator user, but don't working properly. It means Maven dependencies aren't resolved in IntelliJ IDEA and browser session cannot be started by Katalon Studio. I can't find any error logs.
When you install UFT/LR they update the JAVA OPTIONS
_JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1
\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar
IBM_JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1
\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar
JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Just make a batch file for launching eclipse and intellij and remove these hooks and it should work. These hooks are usually added for automation and recording to work. Most of the time they are supposed to be transparent and not create an issue but with some apps they may cause partial issues.
This could be the same happening. The easiest way to test is to backup the values of these environment variables and then delete them and test if IDE works fine again

How can I have JProfiler open source code in IntelliJ?

I use JProfiler 8.1.4 and I have it integrated with IntelliJ IDEA 14.1.3.
I have a JProfiler session for profiling JBoss using the standalone_jprofiler.bat script like this:
Now, when I want to go to the source code for some method, JProfiler uses a (minimal) internal file viewer instead of using IntelliJ.
I would assume that the source code linking works fine when the profiling is initiated by the IntelliJ plugin, but in my case I don't know what run configuration to create in IntelliJ for standalone_jprofiler.bat.
So finally, my question is: Is it possible to see the code in IntelliJ when the profiling is initiated from the standalone JProfiler application?
One more piece of information: In this case I want the profiling to be activated immediately on startup.
I apologize in advance if this is too simple or silly. I've used JProfiler for just one day and googling didn't yield any relevant answers.
Is it possible to see the code in IntelliJ when the profiling is initiated from the standalone JProfiler application
No, that is not possible, you have to start the profiling session from IDEA to get source code navigation in the IDE.
Another possibility is to save a snapshot in JProfiler and open that snapshot in IDEA (via File->Open File). If the JProfiler plugin is installed in IDEA, the snapshot will then be opened with source code navigation in the IDE.

IntelliJ: Launch Run-configuration from the embeded terminal

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.

Stop all servers in one action in IntelliJ

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).