Java Reference
In-Depth Information
selected text. To clear the output, right-click inside the
Run
window and select
the
Clear All
command.
Running multiple programs at once
The output from your application appears in a tab inside the
Run
window that's
named after the configuration profile you used to run the program. If you rerun
the application, the output uses the same tab inside the
Run
window. Running
different applications causes their output to use separate tabs. You can keep the
output of an application, even if you rerun it, by pinning the tab. To do so, right-
click the tab and select the
Pin Tab
option. An icon appears on the tab to indicate
that the tab will neither be closed nor overwritten. You can right-click the tab and
toggle off the pin if you wish.
When multiple tabs are present, you can right-click any of them to perform
the same type of tab-management command available to the editor tabs. You can
close one tab, all tabs, or all but the current tab. You can also navigate between
them via the context menu or by pressing
Alt+Right
and
Alt+Left
.
You can close any tab by holding down the
Shift
key while clicking it. Al-
ternatively, if you use a three-button mouse, click the tab with your mid-
dle mouse button.
TIP
Stopping a program or suspending its output
To stop a program that is out of control or otherwise has no way to stop itself,
click the
Stop
icon in the
Run
window. The process is interrupted and should exit
immediately. If you try to close the tab of an active process,
IDEA
stops the process
first (after having you confirm the decision). You'll also find a
Pause Output
but-
ton in the
Run
window toolbar. This button temporarily suspends the output of
the program to give you a chance to examine the output. It acts as a toggle but-
ton: Click it once to pause the output and again to resume.
It's important to understand that the
Pause Output
button suspends output
from the program but not the program itself, which keeps running in the back-
ground. To pause a running program, you must load it application into the
debugger as described in the next chapter.
Rerunning a program
You can rerun any application whose tab is still available in the
Run
window. To
do so, select the tab, and then click the
Rerun
icon in the
Run
window's toolbar,
or press
Ctrl+F5
. The program will be run again using the same settings used