# Run applications

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/ruby/2026.3/llms.txt).

You can run applications right from RubyMine. Before you start, make sure to [configure a Ruby interpreter](configuring-language-interpreter.html) for your project.

## Quick way

Procedure: Run from the editor

If you are not going to pass any parameters to your program, and your program does not require any specific actions to be performed before start, you can run it right from the editor.

* To run a script, open it in the editor or select it in the Project tool window, and then select Run <script file name> from the context menu.

![Run a script](https://resources.jetbrains.com/help/img/idea/2026.3/rm_run_script_from_project_tool_window.png)

* To run a test, click the gutter icon next to it or press `Ctrl+Shift+F10` (Windows), `⌃ ⇧ R` (macOS), `⌃ ⇧ F10` (IntelliJ IDEA Classic (macOS)), `⌃ ⇧ R` (macOS System Shortcuts), `Ctrl+Shift+F10` (XWin), `Ctrl+Shift+F10` (GNOME), `Ctrl+Shift+F10` (KDE), `Ctrl+Shift+F10` (Emacs), `Ctrl+Shift+F10` (Sublime Text), `Ctrl+Shift+F10` (Sublime Text (macOS)), `Ctrl+Alt+F5` (Visual Studio), `⌃ ⌥ F5` (Visual Studio (macOS)), `Meta+Shift+R` (TextMate), `Alt+Shift+F6` (NetBeans), `Ctrl+Shift+F10` (Eclipse), `⌃ ⇧ R` (Eclipse (macOS)). The gutter icon changes depending on the state of your test, refer to [Performing
tests](performing-tests.html#run-tests).

Procedure: Run the current file

You can run single files using a dedicated option on the toolbar. The run and debug buttons are active and allow you to instantly run the currently opened file.

1. In the editor, open the file that you want to run.

2. Click ![Run](https://resources.jetbrains.com/help/img/idea/2026.3/app.actions.execute.svg) next to the Current File option on the toolbar.

![Running a single file from the toolbar](https://resources.jetbrains.com/help/img/idea/2026.3/rm-run-current-file.png)

You can access the other run modes by expanding the list. From the widget that opens, you can debug the code, run it with coverage, profile it, or open the run configuration to specify more options.

![More options for running current file](https://resources.jetbrains.com/help/img/idea/2026.3/rm_run_current_file_more.png)

## Customizable way

Procedure: Use a run/debug configuration

If you are going to pass parameters to your program, add VM options (for example, to allow remote debugging),  or otherwise customize the startup of your program,  use a [run/debug configuration](run-debug-configuration.html).

[Edit and save a temporary
configuration](run-debug-configuration.html#save-as-permanent), or [create a new run/debug
configuration from a template](run-debug-configuration.html#createExplicitly) and use one of the following options to run it:

* If the run configuration is already selected in the [Run widget](guided-tour-around-the-user-interface.html#toolbar) , click ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.run.run.svg) next to it or press `Shift+F10` (Windows), `⌃ R` (macOS), `⇧ F10` (IntelliJ IDEA Classic (macOS)), `⌥ ⇧ R` (macOS System Shortcuts), `Shift+F10` (XWin), `Shift+F10` (GNOME), `Shift+F10` (KDE), `Shift+F10` (Emacs), `Shift+F10` (Sublime Text), `Shift+F10` (Sublime Text (macOS)), `Ctrl+F5` (Visual Studio), `⌃ F5` (Visual Studio (macOS)), `Meta+Ctrl+R` (TextMate), `F6` (NetBeans), `Alt+Shift+X` (Eclipse), `⌘ ⇧ F11` (Eclipse (macOS)).

If you want to select another run configuration, click the [Run widget](guided-tour-around-the-user-interface.html#toolbar) . In the menu that opens, click ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.run.run.svg) next to the run configuration you want to launch.

![Run configuration selector](https://resources.jetbrains.com/help/img/idea/2026.3/rm_runConfigMenu.png)

* Press `Alt+Shift+F10` (Windows), `⌃ ⌥ R` (macOS), `⌥ ⇧ F10` (IntelliJ IDEA Classic (macOS)), `⌃ ⌥ R` (macOS System Shortcuts), `Alt+Shift+F10` (XWin), `Alt+Shift+F10` (GNOME), `Alt+Shift+F10` (KDE), `Alt+Shift+F10` (Emacs), `Alt+Shift+F10` (Sublime Text), `⌃ ⌥ R` (Sublime Text (macOS)), `Ctrl+Alt+Shift+R` (Visual Studio), `⌘ ⌥ ⇧ R` (Visual Studio (macOS)), `Meta+R` (TextMate), `Alt+Shift+F10` (NetBeans), `Alt+Shift+F10` (Eclipse), `⌃ ⌥ R` (Eclipse (macOS)) and select the configuration on the pop-up window that opens.

![Run configuration popup selector](https://resources.jetbrains.com/help/img/idea/2026.3/rm_runConfigpopup.png)

* Click Run from the  Run/Debug Configurations  dialog.

![Run/debug configuration: the Run button](https://resources.jetbrains.com/help/img/idea/2026.3/rm_run_debug_configuration_run_button.png)

When the application starts, you can view its output and interact with it in the Run tool window. Every [run/debug configuration](run-debug-configuration.html) creates a separate tab when you run it.

> **Tip:**
> Use the `Ctrl+F` (Windows), `⌘ F` (macOS), `⌘ F` (IntelliJ IDEA Classic (macOS)), `⌘ F` (macOS System Shortcuts), `Ctrl+F` (XWin), `Ctrl+F` (GNOME), `Ctrl+F` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+F` (Sublime Text), `⌘ F` (Sublime Text (macOS)), `Ctrl+F` (Visual Studio), `⌘ F` (Visual Studio (macOS)), `Meta+F` (TextMate), `Ctrl+F` (NetBeans), `Ctrl+F` (Eclipse), `Ctrl+F` (Eclipse (macOS)) shortcut to search for text occurrences in the console output.

For more information about tool windows and how to manage them, see the [Tool windows](tool-windows.html) topic.

## Re-run applications

Procedure:

* On the toolbar of the Run tool window, click ![the Rerun button](https://resources.jetbrains.com/help/img/idea/2026.3/app-client.expui.run.rerun.svg) Rerun or press `Shift+F10` (Windows), `⌃ R` (macOS), `⇧ F10` (IntelliJ IDEA Classic (macOS)), `⌥ ⇧ R` (macOS System Shortcuts), `Shift+F10` (XWin), `Shift+F10` (GNOME), `Shift+F10` (KDE), `Shift+F10` (Emacs), `Shift+F10` (Sublime Text), `Shift+F10` (Sublime Text (macOS)), `Ctrl+F5` (Visual Studio), `⌃ F5` (Visual Studio (macOS)), `Meta+Ctrl+R` (TextMate), `F6` (NetBeans), `Alt+Shift+X` (Eclipse), `⌘ ⇧ F11` (Eclipse (macOS)).

> **Tip:**
> If you re-run an application, the output of the previous run is lost. To preserve the output of an application, click the Pin Tab button on the toolbar of the Run tool window. When a tab is pinned, new sessions are opened in another tab.

## Stop and pause applications

When you stop a program, its process is interrupted and exits immediately. When you pause a program, it continues running in the background, but its output is suspended.

Procedure: Stop a program

* In the Run tool window, click ![the Stop button](https://resources.jetbrains.com/help/img/idea/2026.3/app-client.expui.run.stop.svg) Stop on the toolbar. Alternatively, press `Ctrl+F2` (Windows), `⌘ F2` (macOS), `⌘ F2` (IntelliJ IDEA Classic (macOS)), `⌃ ⇧ .` (macOS System Shortcuts), `Ctrl+F2` (XWin), `Ctrl+F2` (GNOME), `Ctrl+2` (KDE), `Ctrl+F2` (Emacs), `Ctrl+F2` (Sublime Text), `Ctrl+F2` (Sublime Text (macOS)), `Shift+F5` (Visual Studio), `⇧ F5` (Visual Studio (macOS)), `Ctrl+\` (TextMate), `Shift+F5` (NetBeans), `Ctrl+F2` (Eclipse), `⌘ F2` (Eclipse (macOS)) and select the process to stop.

Procedure: Pause the program output

* Right-click in the Run tool window and select Pause Output from the context menu. Use the same toggle to resume the program.

> **Note:**
> Only the output is suspended. Pausing the output does not affect the execution of the program.

## Show running processes

You can view the list of all active run or debug sessions and navigate between them.

Procedure:

* Go to Run | Show Running List. In the top-right corner of the editor, RubyMine shows a list with all active applications.

## See also

### Concepts

[Run/Debug Configurations](run-debug-configuration.html)

### Reference

[Run tool window](run-tool-window.html)

