在 xcode 中启用标签? 还是减轻没有标签的痛苦?

我目前正在使用 xcode,我发现它缺少标签非常令人不安。

目前,我使用 command-shift-d 搜索所有文件,或者使用 ctrl-1打开最近打开的文件的历史记录。

它工作,但我发现它不仅仅是标签通过几个文件,我目前正在工作的有效性。

是否有任何方法,第三方或没有,使某种标签组织? 如果没有,是否有其他方法可以快速浏览文件的子集?

38925 次浏览

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.

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

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.

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.

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!

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

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

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.