IntelliJ IDEA 2021.1 Help

Run anything

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.

bundle install command

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:

    Run configurations from Run Anything

    To debug a run configuration, hold Shift when launching it.

Run commands

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

    Run a Command in the Run Anything dialog
    Run a Command in the Run Anything dialog

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:

Configure Context in the Run Anything dialog

Open recent projects

The Run Anything dialog allows you to reopen recent projects.

  • Type open, then select the required project from the list and press Enter:

    Open recent projects
Last modified: 28 April 2021