Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make the tabs work normally on Xcode 4?

Tags:

xcode

xcode4

Xcode finally added tabs but the problem is that they behave very strange. For example they will keep a tab open only if it was opened to a new tab.

If you open a file just by clicking in the project tree, Xcode will close your tab as soon as you are clicking on another file in the tree.

Is is possible to make them behave like real tabs and prevent Xcode from reusing them? How?

like image 993
sorin Avatar asked Mar 18 '11 14:03

sorin


People also ask

How do I open tabs in xcode?

You need to open Xcode's Navigation preferences, and for “Navigation Style” select “Open In Place”. The new “inner tab bar” will disappear, and the previous tab behavior (and shortcuts!) will be restored. For Xcode 12.5, you may need to close all windows and reopen them for the changes to take effect.


1 Answers

I use a method similar to franks:

  • In Preferences > Navigation (or Preferences > General in versions of Xcode prior to 5) you can set Optional Navigation to Uses Separate Tab
  • Now opt-clicking a file in the file navigator will open it in a new tab
  • Better yet, opt-clicking links in the code opens the destination file in a new tab

The big feature missing is swapping to an already open tab containing the file if there is one (or staying in the current one).

like image 110
drömsynt Avatar answered Sep 23 '22 17:09

drömsynt