Xcode中的TODO:如何使其脱颖而出? [英] TODOs in Xcode: How to make them stand out?

查看:255
本文介绍了Xcode中的TODO:如何使其脱颖而出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道发出警告的方法,但是我想将合法警告与待办事项分开. 我还没有看到xcode 4像每个人都认为的那样突出待办事项.而且xcode的todo支持仅适用于功能之外的todo.

I am aware of the method of making them warnings, but I want to keep my legit warnings separate from my todos. I'm also have yet to see xcode 4 highlight the todos like everyone seems to think it does. And xcode's todo support only works on todos outside of functions...

此处中概述的构建阶段脚本非常好,但是它会使TODO成为警告,而Objective C会创建足够的合法警告,我不想让我的工作阻塞了清单.有没有一种方法可以使待办事项成为不同的构建结果,例如信息结果或其他内容?不会使Xcode的真实警告(应该是一半的 错误)在人群中消失的东西?

The build phase script that is outlined here is wonderful, but it makes the TODOs into warnings, and Objective C creates enough legitimate warnings that I don't want my todo's clogging up the list. Is there a way to make the todo's a different build result, like an info result or something? Something that will not make Xcode's real warnings (half of should be errors) vanish in the crowd?

推荐答案

更新

从Xcode 4.4开始; FIXME: ???: ????: !!!: 均在功能/方法.

UPDATE

As of Xcode 4.4; FIXME:, ???:, ????:, !!!: all work outside of a function/method.

的问题将突出显示TODO

//TODO: This will show in function drop down 
-(void)method1
{
    //TODO: This will not show
}

此外; FIXME ??? ???? !!!! .

In addition; FIXME, ???, ????, !!!! do the same.

这篇关于Xcode中的TODO:如何使其脱颖而出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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