In IntelliJ IDEA, you can run applications, scripts, commands, tasks, and so on. IntelliJ IDEA provides a single entry point for all these operations — Run anything.
On top of being a quick way to run things, the Run Anything dialog helps you use proper command syntax by generating suggestions as you type. When you run the command, Run Anything delegates the further work to the appropriate tools.
Run/debug an application
You can launch a specific run/debug configuration from the Run Anything dialog:
Start typing the run/debug configuration name and select it from the suggestions list:
To debug a run configuration, hold Shift when launching it.
Start typing the command name and navigate the suggestions list using the arrow keys. When you press Space, you accept the current suggestion and get further suggestions specific to this command.
By default, the working directory depends on the project or module you are currently in. To use the location of the current file as the working directory, hold Alt when running a command.
You can also use an arbitrary location as the working directory. It is configured in the top-right corner of the dialog:
Open recent projects
The Run Anything dialog allows you to reopen recent projects.
open, then select the required project from the list and press Enter: