English 中文(简体)
如何在“项目导航器”面板上突出显示XCode 4中打开的文件?
原标题:How to highlight opened file in XCode 4 on the "Project Navigator" panel?
  • 时间:2011-05-26 02:58:38
  •  标签:
  • xcode4

由于一个项目可以在“项目导航器”面板上显示的数十个目录(过滤器)中有数百个文件,因此有时很难找到当前在编辑器中打开的文件(例如,当我通过“CMD+单击”等从一个文件跳到另一个文件时)。

有没有办法在“项目导航器”面板上自动选择当前打开的文件?也就是说,自动展开目录(过滤器)并选择那里的文件,就像我点击它一样?也许有捷径什么的?

谢谢

最佳回答

在编辑器中的文件上单击鼠标右键,然后选择“在项目导航器中显示”。

问题回答

键盘快捷键为-shift-J

另一个选项是右键单击编辑器窗格中的任何位置(带有源代码)->;导航->;在项目导航器中显示。





相关问题
XCode fails to deploy iPhone app to iPhone 3GS

So I built my iPhone app and it runs fine in the simulator so I wanted to deploy it to my iPhone for one last testing round before I go into open beta testing wiht my distribution profile. I did this ...

How can I "add existing frameworks" in Xcode 4?

I can t find the good old "Add existing frameworks" option. How do I do this? We re talking about Xcode 4 DP2 (in the context of iPhone development, as far as it matters...).

How to rename a project in Xcode?

There are some pretty horrible instructions out there for renaming projects in Xcode. Is there no easy way to do this?

Where did the script menu go in Xcode 4?

I always love the script menu from Xcode and the ability to automatically generate accessor methods definition und declaration. But it looks like in Xcode4 there is no such thing anymore. I know I can ...

Xcode 4 - Connecting Outlets

This page shows how easily I can connect outlets http://developer.apple.com/technologies/tools/whats-new.html in Xcode 4, but I can t get it. I right click and drag an outlet from the new ...

GCC to LLVM migration tips?

Xcode 4 comes with LLVM. As a casual programmer (i.e. download some open source projects and compile them on a mac via command line), is there any tips for the transition?

Building dependencies in Xcode 4

I have a project that has a dependency on a static library. In Xcode 3.2.3 the project that builds the library is setup as a direct dependency in the target settings so that the library is built ...

热门标签