I want to start a powershell script within intellij, I have tried the powershell plugin but it doesn't allow me to open the script in a separate window. The script stops intellij and then asks me to start it again, but since intellij is closed and the script gets disconnected from it, I don't have the console window anymore and it keeps running in the background waiting for confirmation.
So my question is. How would I run a file from within intellij like when its ran it from file explorer, so it opens the file in its own window instead of the intellij console? I want it to be available in Run Configurations but I can't do it with the powershell plugin since all that the plugin does is open the script in the intellij terminal. I want to open this script in its own terminal, that is cmd.exe or powershell.exe instead of using the Terminal in IntelliJ.
Related
If I close all my current terminal windows then right click a folder in my project and choose "Open in Terminal" I see this:
It drops me into "Local(2)" but also opens "Local". Why does it do this? Can I have intellij just open one terminal when I do this?
It's a cosmetic issue. Opening Terminal tool window automatically starts the terminal in the current project root.
When you invoke the Open in Terminal for a folder, the following happens:
Terminal tool window opens automatically starting the shell in the project root
An action to open a terminal in the selected folder is called which leads to the second tab open
Bug report is welcome.
I installed IntelliJ IDEA for my windows 10 successfully. But when I click to open the IntelliJ IDEA it doesn't open and not show any single error message pop up.
Can I get an answer why is that, please?
And How to open it in Windows?
Open Windows command prompt and start IDE from command line using idea.bat script, located in IDE_HOME/bin directory and examine the output to see the error message it reports if it does not start.
I'm trying to spin up docker container when I run a particular configuration in intellij, which I have done successfully by adding a 'Before Launch external tool command', as described here:
IntelliJ IDEA: Running a shell script as a Run/Debug Configuration
What doesn't seem obvious though is how I stop the container when the program has finished running? There doesn't seem to be any options for after.
How do I run a shell script when my run configuration finishes? (Either by reaching it's end, or being forcefully stopped).
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).
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.