Enabling tabs in xcode? Or lessening the pain of not having them?

Objective CXcodeMacosIde

Objective C Problem Overview


I am currently using xcode and I find it's lack of tabs quite disturbing.

I currently use command-shift-d to search through all the files, or ctrl-1 to open the history of files that were recently opened.

It works but I find it less effective than just tabbing through the few files i am currently working on.

Is there any way, third party or not, to enable some sort of tabbed organization? If not, is there any other way to quickly navigate through a subset of files?

Objective C Solutions


Solution 1 - Objective C

XCode 4 now supports tabs. You can enable by selecting "View / Show Tab Bar" menu.

Solution 2 - Objective C

Not really, but one alternative is View > Show Favorites Bar and drag five or six frequently-used source files into it. Not as flexible as tabs but satisfies your request for "quickly navigate through a subset of files".

The traditional way is to use the detail view. Get the files you want in the Detail view by one of these means:

  • Put them all in the same group, then select the group
  • Enter a filter expression in the Search Bubble that narrows the items shown
  • Define a Smartgroup that includes just the files you want
  • Get a list of the files as a Find in Project result, then select that item in Find Results

Then you can use the Detail View as your list of interesting files and navigate through it quickly with the up and down arrows.

Solution 3 - Objective C

First of all, you can use Textmate (which I believe has Xcode integration). Otherwise:

Window (Menu) -> Organizer (ctrl-command-o)

At the bottom of that window, if you don't have two panes, click the square to the right of the gear. Now drag code files of interest to the left, grey pane--a single click or arrow up/down will open the file in the editor pane.

If you do open a bunch of windows, as vog suggested, you'll need to command-~ through them--not alt-tab.

Cheers.

Solution 4 - Objective C

The Xcode source code editor allows you to choose the file from a list. It's two clicks instead of one (as it would be with tabbing), but it's better than nothing.

In addition, you can simply Alt-Tab through your open source code windows. This is not slower than tabbing, and has the same effect since the source code windows are usually placed exactly one in front of another.

Solution 5 - Objective C

You'll definitely want to read through this. (XCode Tips and Tricks you wish you know about two years ago - SO)

Solution 6 - Objective C

You can navigate between files using "Recent Files"

Write simple applescript:

tell application "Xcode"
	tell application "System Events"
		keystroke "1" using {control down} -- open "Related Files"
		key code 125 -- choose "Recent Files" ("keystroke down" doesn't work)
		keystroke return -- enter to "Recent Files"
		key code 125 -- choose previous file
	end tell
end tell

And bind it to some shortcut using for example FastScripts(free up to 10 bindings)

I have this script on "Control" + "`". (XCode 4)

Hope this will help

Solution 7 - Objective C

You may also try an Xcode plugin I've just released - it's called Code Pilot and solves a lot of issues of Xcode's navigation, making it more TextMate/Eclipse-like.

Check it out here: http://macoscope.net/en/mac/codepilot/

I hope this helps!

Solution 8 - Objective C

It is simple with XCode 7.2

GoTo View>>Show Tab Bar

This will show the tab bar.

RightClick on the New Tab and click -->"NEW TAB"

Then We can see all the files in tabs.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionpbreaultView Question on Stackoverflow
Solution 1 - Objective CIvan MarinovView Answer on Stackoverflow
Solution 2 - Objective CcdespinosaView Answer on Stackoverflow
Solution 3 - Objective CJeffView Answer on Stackoverflow
Solution 4 - Objective CvogView Answer on Stackoverflow
Solution 5 - Objective CSneakynessView Answer on Stackoverflow
Solution 6 - Objective CcodyView Answer on Stackoverflow
Solution 7 - Objective CkodzView Answer on Stackoverflow
Solution 8 - Objective CVARUN ISACView Answer on Stackoverflow