Questions tagged [todo]

TODO is often used in code comments to indicate a task that needs to be done. IDEs often highlight them. Please do not use this for questions about creating todo list applications.

TODOs are source-code comments, stating that something still needs to be done in that particular section of the program.

Different syntaxes are used for different languages. A typical C-style example would be:

// TODO: Fix this

It has been debated whether todo comments are to be considered good or bad practice.

Most IDEs have the facility of highlighting TODOs and/or displaying them in a separate view.

224 questions
21
votes
3 answers

Task priorities in Eclipse

I know two ways to create tasks using Eclipse; with the tasks view or with the TODO annotation in a comment: //TODO: wtf? Rewrite it using constants. int foo = 3.1 * 3; If I use the first way, I can edit tasks and set the "priority". Can I do it…
Stan Kurilin
  • 15,614
  • 21
  • 81
  • 132
21
votes
2 answers

How to put TODO comments in xml?

I was wondering if there is a way to comment parts of xml code in android so they would later show up in TODO list in android studio? I am using android studio 0.8.2.
Markonioninioni
  • 402
  • 1
  • 5
  • 16
20
votes
2 answers

Emacs :TODO indicator at left side

I want to have sort of indiacator at left side of the line wherever I have in the source code #TODO: some comment //TODO: some comments The indicator could be a just mark and I already enabled line numbers displayed at emacs.
user90150
19
votes
4 answers

Emacs: highlighting TODO *only* in comments

This question is related to another one, Emacs :TODO indicator at left side. I recently came across a minor mode I like a lot called FixmeMode. It supports auto highlighting of TODO marks, and navigating between them. However, I think it makes more…
Wei Hu
  • 2,888
  • 2
  • 27
  • 28
18
votes
2 answers

How to create more notes like TODO in Android Studio, for example CHECK or TEST?

Does anybody know how to create new tags similar to the "TODO" in Android Studio? I mean so that they would highlight as well and appear in the list of issues. I'd appreciate any tip or suggestion.
Hubert
  • 181
  • 1
  • 8
18
votes
1 answer

What does the comment "COMBAK" mean?

I was looking at the vimscript syntax file in the syntax directory, and under the keyword vimTodo were the words COMBAK, FIXME, TODO, and XXX. I can figure out what FIXME and TODO mean pretty easily, and I can guess what some might use XXX for, but…
theresawalrus
  • 347
  • 2
  • 19
18
votes
4 answers

Script to find all TODO comments created on a git branch?

I have a feature branch that's grown quite large. There are quite a few lingering TODO comments in our code, but I'd like to find all TODOs added to the code (and not removed yet) on commits not yet merged into master. How might I go about that?
Ben Dilts
  • 10,535
  • 16
  • 54
  • 85
18
votes
3 answers

How to untick checkboxes in org-mode for the next cyclic/repetitive task

With cyclic or repetitive tasks in org-mode, inside this task, if there are several checkboxes and all of them marked as ticked, after the general task is masked as DONE, the checkboxes for the next cycle period stills appear as ticked and it should…
Borja Tarraso
  • 863
  • 2
  • 12
  • 20
16
votes
5 answers

How do I get TODO comments in HTML files to show up in Task List in Visual Studio?

So, I have TODO comments showing up in my task list as long as the TODO comment is in a C# file. The TODO comments in HTML, CSS, or JScript aren't showing up in my Task List. Is there a way to enable this in Visual Studio 2010 Pro?
Watermark Studios
  • 1,173
  • 1
  • 10
  • 24
15
votes
4 answers

Where does the TODO convention come from?

I suspect this question has been asked before, but it's not easy to Google for. I am a fairly new coder and I see a lot of code, in a lot of different languages, with comments beginning "TODO". Questions: Is there a practical reason why people…
Richard
  • 31,629
  • 29
  • 108
  • 145
15
votes
2 answers

TODOs in Xcode: How to make them stand out?

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 everyone seems to think it does. And xcode's todo support only works on todos…
Tustin2121
  • 2,058
  • 2
  • 25
  • 38
15
votes
5 answers

TODO tasks list in Flash Builder

Does Flash Builder support tasks list? I'm testing Flash Builder for PHP, and I can see my // TODO in PHP code but not in AS or MXML. I found this plugin: http://www.richinternet.de/blog/index.cfm?entry=911D4B57-0F0D-5A73-AF6F4D4D04099757 but it's…
Enrique
  • 4,693
  • 5
  • 51
  • 71
15
votes
2 answers

How do I make TODO comments show up in the task list for C++ projects in Visual Studio 2010?

I'm trying to get my TODO comments to show up in the task list in Visual Studio 2010 for a C++ project, but they don't. I looked at this, but see no caveats other than the TODO comments need to be in the currently-open file. For example, creating…
Chris Simmons
  • 6,924
  • 5
  • 31
  • 47
15
votes
2 answers

How to Add Eclipse TODOs to JSPs

There is a way to add "TODO"s to Java classes so that they will show up in Eclipse's Tasks view. //TODO: comment about what needs done Does anyone know how to add a similar comment in a JSP so that it'll show up in the Tasks view in Eclipse? I've…
Snowy Coder Girl
  • 5,408
  • 10
  • 41
  • 72
13
votes
1 answer

How to change TODO highlight in atom editor

In my opinion the higlighting of a TODO "flag" in the atom editor is too weak/unobtrusively. How can I change this? I DON'T wanna list the todos in a sidebar (https://atom.io/packages/todo-show). Here to compare: In Vim editor there is very strong…
zypro
  • 1,158
  • 3
  • 12
  • 33
1 2
3
14 15