Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode using FIXME, TODO, ???,?

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)?

like image 822
Ben Avatar asked May 04 '11 23:05

Ben


People also ask

How do you add a TODO comment in Swift?

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.


1 Answers

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.

like image 81
loomer Avatar answered Oct 05 '22 00:10

loomer