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
  • 7,766
  • 8
  • 46
  • 61
hgbnerd
  • 1,080
  • 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,565
  • 8
  • 72
  • 94
  • 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
  • 7,766
  • 8
  • 46
  • 61
boweidmann
  • 3,254
  • 2
  • 18
  • 26