pbreault
pbreault

Reputation: 14496

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

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?

Upvotes: 76

Views: 39524

Answers (8)

VARUN ISAC
VARUN ISAC

Reputation: 443

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.

Upvotes: 0

cody
cody

Reputation: 3277

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

Upvotes: 1

Ivan Marinov
Ivan Marinov

Reputation: 2786

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

Upvotes: 107

kodz
kodz

Reputation: 393

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!

Upvotes: 0

cdespinosa
cdespinosa

Reputation: 20799

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.

Upvotes: 7

Jeff
Jeff

Reputation: 335

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.

Upvotes: 4

Sneakyness
Sneakyness

Reputation: 5403

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

Upvotes: 1

vog
vog

Reputation: 25607

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.

Upvotes: 1

Related Questions