10

XCode 4 recognizes comments like // TODO: comment or // FIXME: comment and displays it in the Class overview drop-down.

Is there the possibility to highlight // TODO with a bright color in the source code, so one can quickly find open TODOs?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
hgbnerd
  • 1,090
  • 1
  • 10
  • 11
  • Check this question:[TODOs in Xcode: How to make them stand out?](http://stackoverflow.com/questions/9469412/todos-in-xcode-how-to-make-them-stand-out) – thundertrick Nov 04 '14 at 15:33

2 Answers2

16

You may be able to edit the syntax highlighting definitions to do this, I am not sure though.

But here is a solution that will make your TODOs and FIXMEs show up as warnings when you build.

Chris Wagner
  • 20,773
  • 8
  • 74
  • 95
  • Thanks for your answer. Not quite what I'm looking for though. It should just "detect" `// TODO` and highlight it. – hgbnerd May 18 '11 at 20:53
7

Use #warning keyword in your code.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
boweidmann
  • 3,312
  • 2
  • 20
  • 27