我如何标记“待办事项"?Xcode 中的评论? [英] How can I mark "To Do" comments in Xcode?
问题描述
目前我正在处理基于 iOS 的图像处理任务.
Currently I'm working on an iOS based Image Manipulation task.
我正在研究不同的模块.因此,如果我将来需要在模块中添加某些内容,我想将其标记为待办事项.是否有其他宏或类似的宏可以在 Xcode 中添加待办事项?
I'm working on different modules. So If I need to add something in a module in future, I want to mark it as a To do note. Are there any other macros or similar to add a to do note in Xcode ?
为此,我目前正在使用 #pragma
像:
For this currently I'm using #pragma
like:
#pragma mark -
#pragma mark To do: Add the Image processing methods.
我得到了:
但它在方法部分列出,如:
I got:
But it lists in the Method section like:
问题是,它列在方法列表下,所以有时我忘记从该部分中删除它,而且很难在整个源代码中找到它.(搜索#pragma 结果以显示整个列表)
The issue is, it's listed under the methods list so sometimes I forgot to remove this from the section also it's very difficult to find it in entire source code. (Searching #pragma results to show entire lists)
我使用的是 Xcode 4.6.2 版.
I'm using Xcode Version 4.6.2 .
推荐答案
我明白了.
像这样写评论:
// TODO: Do something
会成功.
我得到了类似的东西:
还有很多选项,例如:
//FIXME: Midhun
//???: Midhun
//!!!: Midhun
//MARK: Midhun
这篇关于我如何标记“待办事项"?Xcode 中的评论?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!