AppCode 2019.3 Help

Terminal Emulator

AppCode includes an embedded terminal emulator for working with a command-line shell from inside the IDE. Having a command line right inside the IDE lets you do things like running Git commands, and so on without switching windows and mental focus when you need to perform a quick command line task.

Initially, the terminal emulator runs with your default system shell, but it supports many other shells such as sh, bash, zsh, csh, and so on.

Open the Terminal tool window

Do one of the following:

  • Press ⌥F12.

  • Select View | Tool Windows | Terminal from the main menu.

  • Click the Terminal tool window button The Terminal tool window button.

  • Hover your mouse pointer over The tool windows icon in the lower left corner of the IDE, then choose Terminal from the menu.

  • Right-click a project item in the Project tool window and choose Open in terminal from the context menu. This way the terminal will start with the directory corresponding to the selected item.

Start a new session

  • Click the Add button on the toolbar. A new session is opened in a separate tab.

    New session in the terminal

Sessions are saved when you close the project or AppCode, that is, tab names, current working directory, and even the shell history is preserved.

To close an active session, click the Close button on the terminal toolbar or right-click the current session tab and select Close Tab from the context menu.

Switch between tabs

  • Press ⇧⌘] and ⇧⌘[ to switch the active tab.

Alternatively, you can press ⌃↓ to see the list of all terminal tabs.

Rename a tab

  • Right-click the tab and select Rename Session from the context menu.

Browse the history of entered commands

  • Use the and keys.

Configure the terminal emulator

  1. In the Preferences dialog ⌘,, go to Tools | Terminal.

  2. Specify the desired shell to use with the embedded terminal emulator, change the start directory, and define environment variables among other settings.

  3. Optionally, configure the settings that the embedded terminal emulator inherits from the IDE settings.

    • On the Keymap page, you can configure the copy ⌘C and paste ⌘V shortcuts.

    • On the Editor | General | Appearance page, you can configure caret blinking. The setting Use block caret is not inherited in the terminal: its caret is always block.

    • You can configure visual presentation in the terminal on the following pgaes:

      • Editor | Color Scheme | Console Font: line spacing, and console fonts.

      • Editor | Color Scheme | Console Colors: console colors.

      • Editor | Color Scheme | General: selection foreground and background colors.

Last modified: 6 February 2020