Unknown Xcode Shortcut

This unknown Xcode shortcut will allow you to close all the tabs, keeping the selected one open.

Francesco Leoni

• 1 min read

We all know very well that to use any IDE effectively, knowing its shortcuts is really important. It saves a lot of time.

So here is a really useful shortcut I discovered randomly while using Xcode.

It allows to close all the open tabs, except the one you need.

Here is the shortcut:

⌥ + ⌘ + click on the little 'x' on the file tab you want to keep open.

If you have any question about this article, feel free to email me or tweet me @franceleonidev and share your opinion.

Thank you for reading and see you in the next article!

Share this article

Related articles


How To Take an Xcode Simulator Screenshot without Shadows

See how to take a ready to use screenshot of the Xcode Simulator embedded in the device bezel without any shadow or toolbar.

• 1 min read

SimulatorXcode

Fix “Build input file cannot be found“ Error in Xcode

See how to fix the “Build input file cannot be found“ error in Xcode. It can be caused by different reasons.

• 1 min read

Q&AXcodeErrors

Error “Missing file libarclite“ (Xcode 14.3)

See how to fix the “Missing file libarclite“ error in Xcode. This is due to libraries with minimum deployment target of iOS 11.

• 1 min read

ErrorsQ&AXcode