RubyMine 2024.2 Help

Run anything

Run Anything is a quick way to launch run/debug configurations, scripts and applications, Rake tasks, Rails generators, and open recent projects. It also helps you use proper command syntax by generating suggestions as you type. When you call a command, Run Anything delegates the further work to the appropriate tools.

The Run Anything popup

Open the Run Anything popup

  • Press Ctrl twice.

    Alternatively, click the Run Anything icon on the toolbar.

    The icon is hidden by default. To add the icon to the toolbar, open the Settings dialog (Ctrl+Alt+S) , go to Appearance and Behavior | Menus and Toolbars, expand the Main Toolbar node, and add the Run Anything action, for example, below Search Everywhere. For more information, refer to Menus and toolbars.

Launch a run/debug configuration

  • Start typing the run/debug configuration name and select it from the list of suggestions:

    Start run/debug configurations from the Run Anything popup
  • To debug a run configuration, hold Shift when launching it.

    Debug configurations

Run commands

Run anything allows you to execute various Ruby- or Rails-specific commands, for instance:

  • Start typing the command name and navigate the suggestion 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
  • To get the list of all available commands, type ?. The list of commands depends on the installed/enabled plugins. If a command is not on the suggestion list, it will be executed in the terminal.

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.

This functionality may be helpful when running scratch files, as they are outside of the project’s root folder.

You can also use an arbitrary location as the working directory. It is configured in the top-right corner of the dialog:

run in context

Open a recent project

You can also quickly reopen a recent project from the Run Anything popup. Search for the project by the name or type open to shorten the list of suggestions, then select the required project from the list, and press Enter:

Opening a recent project from the Run Anything popup

Send HTTP requests

If, while composing an HTTP request, you specified its name, you can find and send this HTTP request from the Run Anything popup.

  1. Start typing the name of an HTTP request and select it from the suggestion list:

    Send HTTP requests
  2. If your request contains environment variables, press Shift while selecting a request. This will open the popup menu where you can select the environment to be used for the request.

    Select HTTP request environment
Last modified: 01 July 2024