AppCode 2018.2 Help

Working with Embedded Local Terminal

AppCode 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, powershell, bash, etc.

To configure the terminal

  1. In the Settings/Preferences dialog (⌘,), open the Terminal page, and 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 AppCode keymap.
  2. The following settings are inherited by the embedded local terminal from the IDE settings/preferences:
    • On the Keymap page, you can configure the ⌘C and ⌘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.

To run the terminal

  • Press ⌥F12.
  • Click the Terminal tool window button terminal tool window button.
  • Hover your mouse pointer over show tool window bars in the lower left corner of the IDE, then choose Terminal from the menu, as described in Wuick access to tool windows.

To start a new session

  • Click new on the toolbar or right-click a session tab, and then choose Create new session on the context menu. A new session is opened in a separate tab:
    AppCode Terminal

To close the active session in focus

  • Click close on the terminal toolbar or right-click the current session tab and then choose Close session on the context menu.

To rename a tab

  • Right-click the tab, and choose Rename tab on the context menu.
  • Use the and keys.

To toggle between the terminal and the editor

  • Press ⌥F12 or choose View | Tool Windows | Terminal on the main menu.

Example

Open the Terminal page of the Settings/Preferences dialog, and configure the Shell path field as follows:

"[path to the git installation]\bin\sh.exe" -login -i

Do not forget the quotes around the command!

Now, when you open the new terminal in AppCode, it will recognize git commands:

terminal git
Last modified: 8 May 2018

See Also