Play Framework (Play Console)
Note that the Play console is available for Play 1.x framework in the IntelliJ IDEA version 11.0. For later versions of IntelliJ IDEA refer to Play 2.x framework and its features.
The Play Framework tab or view in the Run tool window are available only under the following conditions:
command and the- The Play framework Support plugin is enabled. See Enabling and Disabling Plugins.
- A Play application is currently open in IntelliJ IDEA. (In technical terms, the directory
<play_dir>\framework\lib
and the file<play_dir>\framework\play-<version>.jar
are included in the dependencies of the module that represents your Play application.)
Use the Play Framework tab or view for running commands of the play
command-line utility (the Play console) and performing other, related tasks.
The console workspace is divided into two parts. In the upper part, the console output is shown. The lower part is for the input; this is where you type the play
commands (omitting the leading play
). The parts are separated with a horizontal line.
Toolbar
Icon | Shortcut | Description |
---|---|---|
Ctrl+F2 | Use this icon or shortcut to stop the Play application which is currently running (the one previously started by means of the play run command). | |
Ctrl+F4 | Use this icon or shortcut to close the Play Framework tab or view. If the Play application is currently running, you can also select to stop it in the dialog that opens. | |
Enter | Use this icon or shortcut to run the current play command. | |
F1 | Use this icon or shortcut to open the corresponding help topic. | |
Ctrl+Alt+Up | ||
Ctrl+Alt+Down | ||
Use this icon to turn the soft wrapping mode in the console on or off. | ||
Use this icon to scroll down to the end of the console output. | ||
Use this icon to send the console output to the default printer. | ||
Use this icon to clear all the contents of the output area. |
Context menu for the output area
Command | Shortcut | Description |
---|---|---|
Copy | Ctrl+C | Use this command or shortcut to copy the selected text fragment to the clipboard. Note that this command is available only if something is currently selected in the output area. If nothing is selected, you can still use Ctrl+C to copy all the contents of the output area to the clipboard. |
Copy Reference | Ctrl+Shift+Alt+C | Use this command or shortcut to place the text \Play Framework:1 onto the clipboard. |
Compare with Clipboard | Use this command to compare selected text or all the contents of the output area (if nothing is currently selected) with the contents of the clipboard. | |
Search with Google | Use this command to search the Internet for the selected text fragment using Google. Note that this command is available only if something is currently selected in the output area. | |
Fold Lines Like This | Use this command to create a new folding pattern based on the current line. See also, Console. | |
Clear All | Use this command to clear all the contents of the output area. |
Context menu for the input area
Command | Shortcut | Description |
---|---|---|
Cut | Ctrl+X | Use this command or shortcut to remove the selected text fragment from the input area and to place it onto the clipboard. Note that this command is available only if something is currently selected in the input area. If nothing is selected, you can still use Ctrl+X to remove the whole command (without the leading |
Copy | Ctrl+C | Use this command or shortcut to copy the text fragment selected in the input area to the clipboard. Note that this command is available only if something is currently selected in the input area. If nothing is selected, you can still use Ctrl+C to copy the whole command (without the leading |
Copy Reference | Ctrl+Shift+Alt+C | Use this command or shortcut to place the text \Play Framework:1 onto the clipboard. |
Paste | Ctrl+V | Use this command or shortcut to paste the last of the clipboard entries into the input area. |
Paste from History | Ctrl+Shift+V | Use this command or shortcut to open the Choose Content to Paste dialog. This dialog lets you select the clipboard entry to be pasted into the input area. |
Paste Simple | Ctrl+Shift+Alt+V | Use this command or shortcut to paste the last of the clipboard entries into the input area as plain text. |
Compare with Clipboard | Use this command to compare selected text with the contents of the clipboard. If nothing is currently selected, the whole play command (without the leading play ) is used for comparison. | |
Search with Google | Use this command to search the Internet for the selected text fragment using Google. Note that this command is available only if something is currently selected in the input area. | |
Fold Lines Like This | Use this command to create a new folding pattern based on the current line. See also, Console. |