# Run applications

CLion enables running entire applications as well as unit tests.

> **Note:**
> If you are working with a CMake project, choose the desired [Cmake
> profile](cmake-profile.html) before running your application:
>
>
>
> ![CMake profile switcher](https://resources.jetbrains.com/help/img/idea/2026.2/cl_cmakeprofile_switcher.png)

If you have configured Before launch tools in a [Run/Debug configuration](run-debug-configurations-dialog.html), CLion runs them first, and then will run the application. Otherwise, the program will start immediately.

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

* Click ![](https://resources.jetbrains.com/help/img/idea/2026.2/app.actions.execute.svg) in the [gutter](guided-tour-around-the-user-interface.html) near the class declaration  and select Run.

![Run using the gutter icon](https://resources.jetbrains.com/help/img/idea/2026.2/cl_runfromgutter.png)

## Customizable way

If you are going to pass parameters to your program or otherwise customize the startup of your program,  use a [run/debug configuration](run-debug-configuration.html).

Procedure: Create/edit a configuration

1. Go to `Run | Edit Configurations`. Alternatively, 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)), `⌘ ⌃ ⌥ ⇧ R` (Xcode), `Ctrl+Alt+Shift+R` (Visual Studio), `⌘ ⌥ ⇧ R` (Visual Studio (macOS)), `Ctrl+Alt+Shift+R` (ReSharper), `⌘ ⌥ ⇧ R` (ReSharper (macOS)), `Ctrl+T` (QtCreator), `⌘ T` (QtCreator (macOS)), `Alt+Shift+F10` (NetBeans), `Alt+Shift+F10` (Eclipse), `⌃ ⌥ R` (Eclipse (macOS)), then `0` (Windows), `0` (macOS), `0` (IntelliJ IDEA Classic (macOS)), `0` (macOS System Shortcuts), `0` (XWin), `0` (GNOME), `0` (KDE), `0` (Emacs), `0` (Sublime Text), `0` (Sublime Text (macOS)), `0` (Xcode), `0` (Visual Studio), `0` (Visual Studio (macOS)), `0` (ReSharper), `0` (ReSharper (macOS)), `0` (QtCreator), `0` (QtCreator (macOS)), `0` (NetBeans), `0` (Eclipse), `0` (Eclipse (macOS)).

2. Edit one of the existing configurations or click ![](https://resources.jetbrains.com/help/img/idea/2026.2/app.expui.general.add.svg) to create a new one.

![A run/debug configuration example](https://resources.jetbrains.com/help/img/idea/2026.2/cl_configexample_newui.png)

Procedure: Run a configuration

Use one of the options:

* Click Run in the Edit Configuration dialog to save the settings and run the configuration right-away:

![Run button in the Edit Configurations dialog](https://resources.jetbrains.com/help/img/idea/2026.2/cl_configdialog_run_button.png)

* Select the configuration in the toolbar switcher and click the ![](https://resources.jetbrains.com/help/img/idea/2026.2/app-client.expui.gutter.run.svg) icon next to it:

![Run/debug configuration switcher](https://resources.jetbrains.com/help/img/idea/2026.2/cl_rdconfig_selector.png)

Alternatively, after you selected the configuration, click the Run button on the main toolbar 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)), `⌘ ⌥ ⇧ R` (Xcode), `Ctrl+F5` (Visual Studio), `⌃ F5` (Visual Studio (macOS)), `Ctrl+F5` (ReSharper), `⌃ F5` (ReSharper (macOS)), `Ctrl+R` (QtCreator), `⌘ R` (QtCreator (macOS)), `F6` (NetBeans), `Alt+Shift+X` (Eclipse), `⌘ ⇧ F11` (Eclipse (macOS)):

![Run from the toolbar](https://resources.jetbrains.com/help/img/idea/2026.2/cl_config_toolbar_run_newui.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.

![Tabs in the Run tool window](https://resources.jetbrains.com/help/img/idea/2026.2/cl_run_tabs_newui.png)

> **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)), `⌘ F` (Xcode), `Ctrl+F` (Visual Studio), `⌘ F` (Visual Studio (macOS)), `Ctrl+F` (ReSharper), `⌘ F` (ReSharper (macOS)), `Ctrl+F` (QtCreator), `⌘ F` (QtCreator (macOS)), `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.2/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)), `⌘ ⌥ ⇧ R` (Xcode), `Ctrl+F5` (Visual Studio), `⌃ F5` (Visual Studio (macOS)), `Ctrl+F5` (ReSharper), `⌃ F5` (ReSharper (macOS)), `Ctrl+R` (QtCreator), `⌘ R` (QtCreator (macOS)), `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.2/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)), `⌘ .` (Xcode), `Shift+F5` (Visual Studio), `⇧ F5` (Visual Studio (macOS)), `Shift+F5` (ReSharper), `⇧ F5` (ReSharper (macOS)), `Shift+F5` (QtCreator), `⌘ ⇧ Y` (QtCreator (macOS)), `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, CLion shows a list with all active applications.

![A list of running applications](https://resources.jetbrains.com/help/img/idea/2026.2/cl_showrunning.png)

## See also

### Concepts

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

### Reference

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

