Xcode 4 - 同时查看 Project Navigator 和 Debug Navigator 以及其他 Navigator [英] Xcode 4 - simultaneous viewing of Project Navigator and Debug Navigator and other Navigators

查看:40
本文介绍了Xcode 4 - 同时查看 Project Navigator 和 Debug Navigator 以及其他 Navigator的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Xcode 4 (4.2) 中,有没有办法让 Project Navigator 视图和 Debug Navigator 视图保持打开状态.用户必须拥有一个或另一个,而不是两个?其他导航员呢?

In Xcode 4 (4.2), is there a way to keep the Project Navigator view open and Debug Navigator view open as well. Must a user have one or the other, but not both? And the other navigators?

Apple 似乎已经决定,如果您想查看调试视图,则不想查看项目中的文件.什么?我弄错了吗?在为 Xcode 4 设计 UI 之前,Apple Xcode UI 人员甚至与开发人员交谈过吗?

Apple seems to have decided that if you want to see the debug view, you don't want to see the files in your project. WTH? Am I getting this wrong? Did Apple Xcode UI guys even talk to developers before designing the UI for Xcode 4?

叹气...

推荐答案

如果您准备打开多个窗口,您确实可以同时打开多个导航器.我知道这不完全是您所要求的,但是对于多个显示设置,它非常方便.如果您只想在特定时间显示特定内容,Xcode 会提供行为"来帮助自动化此过程.


例如,开发人员遵循的一个常见模式是为运行开始"设置一个行为,打开一个新的调试窗口设置.首先通过按 command-T 在您的主 Xcode 窗口中创建一个新选项卡,然后双击选项卡的标题以重命名为调试"或任何您喜欢的名称.然后将该窗口拖出(如果您愿意,也可以将其保留为选项卡),并根据需要自定义视图 - 例如,对于 deb 窗口,您可能会在底部显示 Debug 区域(甚至覆盖整个编辑器视图),然后通过右键单击并选择隐藏工具栏"删除顶部的工具栏.

You can indeed have more navigators open at once, if you are prepared to have multiple windows open. I know it's not exactly what you're asking for, but for multiple display setups it's very handy. Xcode provides "behaviors" to help automate this process if you only want certain things showing at certain times.


For example, a common pattern that developers follow is to setup a behavior for "Run starts" that opens up a new window setup for debugging. Start by creating a new tab in your main Xcode window by pressing command-T, and double-click on the tab's title to rename is "Debug", or whatever you like. Then drag that window out (or leave it as a tab if you like), and customise the view as required - for example, for a deb window you might have the Debug area showing at the bottom (or even covering the whole editor view), and remove the toolbar at the top by right clicking and selecting "Hide Toolbar".

接下来,转到Xcode > Behaviors > Edit Behaviors..."并在左侧面板中选择Run starts".选中显示选项卡"框并输入新创建的选项卡的名称.您还可以要求该选项卡自动显示调试导航器,并显示带有变量和/或控制台视图的调试器.如果愿意,您可以选择运行完成"并显示原始选项卡"(窗口),我已将其设置为编码",并显示所需的导航器(在我的情况下为项目导航器).

Next, go to "Xcode > Behaviors > Edit Behaviors..." and choose "Run starts" in the left panel. Check the box for "Show tab" and enter the name of your newly created tab. You can also ask that tab to automatically show the Debug Navigator, and show the debugger with variables and/or console view. If you like, you can then choose "Run completes" and show the original "tab" (window), which I've setup to be called "Coding", and show the required navigator (in my case, Project Navigator).

成功运行后,Xcode 现在将打开您的新窗口(如果它已经打开,则将其放在最前面),其中包含您留下的所有设置.停止时,您的主编辑器将回到最前面.


有很多有用的行为,所以我真的建议你仔细阅读它们并花时间设置 Xcode 以尽可能地适合你的风格.所有软件都向用户指示如何做事,而当开发人员决定更改 UI 时,他们永远无法取悦所有人.任何人都希望实现的最佳目标是尽可能地自定义界面以适应他们的工作风格.如果这对您来说仍然是个问题,您可以适应它,或者,如果可能,转向其他方面.

On successfully running, Xcode will now open up your new window (or bring it to the front if it's already open) with all the settings you left it with. On stopping, your main editor will be brought back to the front.


There are loads of useful behaviors, so I would really recommend looking through them and taking the time to setup Xcode to suit your style as best as possible. All software dictates to the user how to go about doing things, and the developers can never please everybody when they decide to change the UI. The best anybody can hope to achieve is to customise the interface as best as they can to fit their style of working. If it's still an issue for you, you can either adapt to it, or, if possible, move to something else.

我不是 Xcode 中每一个新界面功能的粉丝,但我已经通过一些自定义让它成为我的",我仍然可以非常高效.话虽如此,我确实喜欢它的很多方面,为此我可以原谅它的一些不太友好的功能 - 毕竟,您无法取悦每个用户.

I'm not a fan of every new interface feature in Xcode, but I've "made it mine" with some customisations and I can still be very productive. That being said there are a lot of things that I do really like about it, and for that I can forgive it for some of the less friendly features - after all, you can't please every user.

这篇关于Xcode 4 - 同时查看 Project Navigator 和 Debug Navigator 以及其他 Navigator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆