mcfly soft
mcfly soft

Reputation: 11645

Xcode Tabs change always from code to code

Is there a way to fix a tab to one file, so it will never change. When I debug with breakpoints, the same tab jumps from one code to another (file). Also during regular development the tab changes the content always. In eclipse, once you have opened a file in a tab it will not change anymore.

Upvotes: 4

Views: 205

Answers (2)

Jessedc
Jessedc

Reputation: 12460

Unfortunately no, it's not possible to fix a tab to one file so it will never change. The equivalent tab functionality you are referring to from eclipse does not exist in Xcode.

The main functionality surrounding the use of tabs seems to be switching to them with Xcode behaviours. From looking at these behaviours in settings and seeing what you can do, it's clear Xcode's tab functionality is in a world of it's own.

It is possible to name a tab by double clicking the title and setting a name. (On it's own this is not very useful).

Rename Tabs

You can then use the "Show tab named [tab name] in [active window | separate Window]" option within your desired behaviour hook category to open (or swap to) this same tab when something happens. Behaviours are part of preferences, global to Xcode, not project specific so this is an indication that these functions are for general workflow related things.

enter image description here

Apart from this "open a tab named and switch to it" behaviour, your only other option to keep your existing file in it's tab (named or not) is to open new files from the navigator by selecting the file while pressing shiftoption or selecting via the "Open Quickly" menu ( commandshiftO) and pressing option shiftreturn to bring up.

Xcode Magic Open Menu
(source: git-tower.com)

These features are documented well over at git-tower.com

Upvotes: 1

Kaan Dedeoglu
Kaan Dedeoglu

Reputation: 14841

I believe you can achieve this from the behaviors tab in Xcode preferences. Specifically check out the Pauses events.

Upvotes: 0

Related Questions