如何在Xcode 4的方法导航器中查看注释? [英] How to View Comments in the Method Navigator of Xcode 4?

查看:157
本文介绍了如何在Xcode 4的方法导航器中查看注释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道如何在Xcode 4中的方法导航器中查看注释

Does anyone know how to view comments in the method navigator in Xcode 4

在Xcode 3中,这些会发出如下评论:

In Xcode 3 these would put comments like:

???: Huh?
!!!: Woah
MARK: Aliens
TODO: Fix this

在这里......

推荐答案

你仍然可以使用// ???:,// FIXME:和// TODO:comments outside 方法,用于在方法导航器中弹出注释。

You can still use // ???:, // FIXME: and // TODO: comments outside of methods to get the comment to pop up in the method navigator.

我知道有些人希望方法中的这些类型的注释仍然显示在方法导航器中,并且有针对此提交的错误报告,但实际上我喜欢这个bug,因为它迫使我保持​​我的方法清洁。我发现将// TODO:等放在方法之上可以创建更好的代码可读性。

I know that some people would like these type of comments within methods to still show up in the method navigator and that there is a bug report filed against this, but I actually like this bug, as it forces me to keep my methods clean. I find that putting the // TODO:, etc., above the method creates better code readability.

只是我的意见。

这篇关于如何在Xcode 4的方法导航器中查看注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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