Marco Eidinger
Swifty Tech by Marco Eidinger

Swifty Tech by Marco Eidinger

Open your terminal from Xcode

Open your terminal from Xcode

Trigger a shell script with Xcode Behaviors to open your terminal

Marco Eidinger's photo
Marco Eidinger
·Jul 14, 2022·

1 min read

Subscribe to my newsletter and never miss my upcoming articles

Xcode is one of the few IDE's I know that does not have a "Open terminal" button. But you can leverage so called "Xcode Behaviors" to quickly launch your terminal.

Xcode Behaviors allows you to execute shell scripts from Xcode with a keyboard shortcut.

There is a nice selection of useful scripts on GitHub and the repo of Awesome-Xcode-Behaviors explains well on how to setup Xcode Behaviors with these scripts.

I use iTerm2 as a replacement for Terminal so I can use the script that I downloaded from GitHub.

Setup iTerm in Xcode Behaviors

Launch a Xcode behavior

With a custom shortcut I can easily open the terminal now.

Large GIF (1302x974).gif

Xcode behaviors can be further used to speed up your workflow, e.g.

  • Open the Issue Navigator for build failures
  • Open the Test Navigator for test failures
  • Start debugging in a new tab

If you are interested in more information then read Speed up things with Xcode behaviors by Antoine van der Lee.

Share this