IntelliJ IDEA 2018.2 Help

Terminal

File | Settings | Tools | Terminal for Windows and Linux
IntelliJ IDEA | Preferences | Tools | Terminal for macOS
Ctrl+Alt+S icons general settings svg


While the default shell in IntelliJ IDEA's terminal (Alt+F12) works fine, many developers prefer to use their favorite shell. For example, Windows users may want to use PowerShell or Cmder, Linux and macOS users may want to use zsh instead of the default terminal shell. On this settings page, you can customize which shell will be used in the terminal.

ItemDescription
Start directory Specify the working directory where the terminal will be launched.
Shell path Specify the shell that will run by default. Here are some values for different shells:
  • PowerShell: powershell
  • Cmder: "cmd" /k ""\vendor\init.bat"" (note the CMDER_ROOT environment variable has to be set)
  • Cygwin: "C:\cygwin\bin\bash.exe" --login -i
  • Zsh: /bin/zsh
  • Bash: /bin/bash (or bash for Windows: bash.exe)
Tab nameSpecify the default name of a new session tab. Note that a session tab can be renamed.
Audible bellIf this option is selected, the console plays the bell sound on incoming escape sequence.
Close session when it endsIf this option is selected, the current session ends automatically when the corresponding process ends (for example, by kill).
Mouse reportingIf this option is selected, the embedded local terminal supports the mouse pointer.
Copy to clipboard on selectionIf this option is selected, the text selected in the Terminal is automatically copied to clipboard.
Paste on middle mouse button clickIf this option is selected, you can paste clipboard contents by clicking the middle mouse button.
Override IDE shortcutsIf this option is selected, the Terminal tool window handles keyboard shortcuts differently from IntelliJ IDEA.
If this checkbox is cleared, the IntelliJ IDEA key bindings are used.
Shell integrationIf this option is selected, the terminal first loads a custom rc config file (located in the terminal folder under plugins of IntelliJ IDEA distribution) which provides an additional set-up, and then the user's rc file.
Last modified: 4 September 2018

See Also