Embedded Local Terminal
CLion has an embedded local terminal where you can use the command line mode without leaving the IDE. Depending on your platform, you can work with command prompt, Far,
bash, and so on.
Configure the terminal
In the Settings/Preferences dialog (Ctrl+Alt+S), click Terminal under Tools. The Terminal page opens.
Specify the following:
The desired shell that will run by default, the name of a session tab
Name of the tab a new session will be opened in, possibility to copy to clipboard etc.
Ability to override the CLion keymap.
The following settings are inherited by the embedded local terminal from the IDE settings/preferences:
On the Keymap page, you can configure the Ctrl+C and Ctrl+V shortcuts.
On the editor's Appearance page - anti-aliasing and caret blinking.
Note that the setting Use block caret is not inherited in the terminal - its caret is always block.
Under the editor's Color and Fonts settings, you can change the following options:
On the Console Fonts page - line spacing, and console fonts.
On the Console Colors page - console colors.
On the General page - selection foreground and background colors.
Run the terminal
Selectfrom the main menu.
Click the Terminal tool window button .
Hover your mouse pointer over in the lower left corner of the IDE, then choose Terminal from the menu.
Start a new session
Click on the toolbar or right-click a session tab and selectfrom the context menu. A new session is opened in a separate tab:
Sessions are saved when you close the project or CLion: tab names, current working directory, and even the shell history.
Close an active session
Click on the terminal toolbar or right-click the current session tab and selectfrom the context menu.
Rename a tab
Right-click the tab and selectfrom the context menu.
Browse the history of entered commands
Use the Up and Down keys.