I have started to use the FIXME
, TODO
, ???
and !!!
tags in XCode but have am finding it painful that it does not recognise the tags when they are within a function. The tags are only recognised outside a given function.
How can I get these tags recognised within a function (as this is where the bugs are)?
Add a heading: Insert a comment with the prefix MARK:. For example: // MARK: [your section heading]. Add a separator line: To add a separator above an annotation, add a hyphen (-) before the comment portion of the annotation.
In xcode 4.1 (don't know if this works in previous versions) I write
#warning TODO: fix this later...
to get a compile warning or
#error FIXME: fix now!
to get a compile error.
I also add these to the code snippet library to make it really ease to add todos.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With