如何在XCode 4中为代码添加书签? [英] How to bookmark code in XCode 4?

查看:303
本文介绍了如何在XCode 4中为代码添加书签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到在XCode 4的代码中添加书签的方法.我知道#pragma mark的内容,但这不是我想要的.我需要的是可以用鼠标单击放置和删除的东西,以及在下一个和上一个之间进行导航的方式,例如VS.

I couldn't find a way to put a bookmark inside the code in XCode 4. I know about the #pragma mark thing but it's not what I'm looking for. What I need is something that I can put and remove with a mouse click and navigate amongst with next and previous, like in VS.

有什么我想念的吗?

推荐答案

书签似乎已经取代了Xcode 4中的恐龙.如果在编辑器上方弹出跳转到书签的弹出窗口,这并不会太糟糕.在以前的版本中也没有消失.当前最好的替代方法似乎是使用断点(当然,要单独禁用)并使用Breakpoint Navigator进行导航.

Bookmarks seem to have gone the way of the dinosaur in Xcode 4. This wouldn't have been so bad had the jump-to-bookmark popup above the editor in previous versions not also disappeared. The best replacement currently seems to be to use breakpoints (disabled individually, of course) and navigate with the Breakpoint Navigator.

到断点的快捷方式是Cmmd + 7.在那里,请使用箭头键

Shortcut to breakpoints is Cmmd + 7. Once there use arrow keys

如果您认为应该这样,请在 http://bugreporter.apple.com 提交错误报告.带回来.

File a bug report at http://bugreporter.apple.com if you feel something like this should be brought back.

这篇关于如何在XCode 4中为代码添加书签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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