Xcode 5: disable one click in navigation

So, after struggling with the terrible choice of the Xcode 4 interface, I'm finally on 5.1.1.

Tabs have become practically usable. Double-click can be configured to open the file in a new tab. Good. Double-clicking on another file opens it in a new tab. Good. Double-clicking on the first file switches back to the previously opened tab. Good! Double-clicking on the first file, when it is open in the current tab, opens the second tab with this file. Well, I can live with it, because from there they just switch from one to the other.

So far, surprisingly sane behavior.

If you do not click once in the navigation bar by mistake. One click opens everything that you click on the current tab, all logic and reasons will be damned.

The question is how to change the behavior of a single click to β€œUse a separate tab” (or how does Xcode refer to this behavior)?

Is there a way to disable single clicks from any action other than highlighting the selection?

+10
xcode xcode9
source share
1 answer

There is no way to disable the behavior of a single click. Two options that bring you closer to your desired behavior:

  • Use most tabs for a single separate window. Use the "main" window with a visible file navigator and a separate "working" window with a hidden file navigator. If you want to add a tab to the working window, create it in the main window and drag it to the working window. This is an additional step, but you will never have a single click change on any tab that you care about (I thought that in the main window the main or focus editor will still be changed, depending on your settings).

  • Use separate windows for each file. There is a preference parameter that allows you to create windows instead of tabs when you double-click a file in the file navigator. Use Mission Management instead of the tab bar to navigate between your files.

0
source share

All Articles