如何在Xcode 4的方法导航器中查看注释? [英] How to View Comments in the Method Navigator of 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屋!