TODOs in Xcode: How to make them stand out?

前端 未结 2 844
情深已故
情深已故 2021-02-19 05:45

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

相关标签:
2条回答
  • 2021-02-19 05:56

    UPDATE

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

    ORIGINAL ANSWER (< Xcode 4.4)

    xcode will highlight a TODO but only outside of a function.

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

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

    TODO

    0 讨论(0)
  • 2021-02-19 06:04

    One way is to use Xcode's search feature. If you mark your code with // TODO:..., you can search the entire project for // TODO and generate a nice list of tasks.

    Also, note that comments starting with // TODO: or // FIXME: that are outside the scope of any method will appear in the method popup menu, just like #pragma mark lines.

    0 讨论(0)
提交回复
热议问题