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
257
votes
6 answers

Find TODO tags in Eclipse

When I used Eclipse to add unimplemented methods to a Java class to fix an error, methods were auto-generated and include // TODO Auto-generated method stub Is there an easy way to view all methods which contain this comment? Some sort of menu…
KPrince36
  • 2,886
  • 2
  • 21
  • 29
116
votes
7 answers

Is it possible to use multiline todo's in IntelliJ IDEA?

If yes, how ? If not, is there a workaround to get similar functionality ? EDIT: What I mean is something like this : // TODO line1 // line2 // line3 and line1, line2, line3 belong to the same TODO and get highlighted with blue.
jhegedus
  • 20,244
  • 16
  • 99
  • 167
87
votes
3 answers

View all TODO items in Visual Studio using GhostDoc

I'm also using GhostDoc in Visual Studio 2008. How do I view all to-do items and if that's a function already in Visual Studio or in GhostDoc (the documentation tool that I use)?
PositiveGuy
  • 46,620
  • 110
  • 305
  • 471
84
votes
3 answers

How do I add a high-priority TODO comment in Visual Studio?

Adding a comment such as this: // TODO: Refactor this code ...creates a task in the Task List that I can view etc. There is a column labeled ! that lets you sort these tasks by priority. How can I set a specific task's priority?
aarona
  • 35,986
  • 41
  • 138
  • 186
73
votes
6 answers

Todo tasks not appearing in the Task List in visual studio 2012

I've recently upgraded to Visual Studio 2012 and haven't have any problems except for the fact that comments beginning with "//todo" no longer show up in the task list. I have absolutely no idea on where to start looking for a solution to this…
SamuelDavis
  • 3,312
  • 3
  • 17
  • 19
66
votes
6 answers

IDE comment keywords

So I only recently discovered the TODO comment. For those of you that don't know, most modern IDE's will recognize this word in a comment and flag the comment line a different colour so It stands out. EG. //Need to talk to Bill about refactoring…
OVERTONE
  • 11,797
  • 20
  • 71
  • 87
55
votes
3 answers

In vim, how do I highlight TODO: and FIXME:?

In vim, FIXME and TODO are highlighted, but I can't get FIXME: and TODO: (note the colon after the keyword) to highlight? What should I put in my .vimrc to make this happen?
Paul Biggar
  • 27,579
  • 21
  • 99
  • 152
53
votes
6 answers

TODO comment font color in VS2010 with ReSharper and Productivity Power Tools

I just installed the Productivity Power Tools for Visual Studio 2010. I also have ReSharper installed. Prior to the PowerTools installation, my TODO comments (i.e. // TODO: Do Something) were showing up in the code using the font listed under VS…
Joe Enos
  • 39,478
  • 11
  • 80
  • 136
48
votes
13 answers

How to add TODOs and track project issues in Android Studio (NOT in sources)

I am writing a new better version of my old Android project that will fix a lot of UI bugs but also has a better design, needed for integration of some new features. As I go through the source I can see all my old and new TODOs in the source, but…
RumburaK
  • 1,985
  • 1
  • 21
  • 30
46
votes
4 answers

# TODO in rails

I had read through a rails book and once found we can add # TODO: and some # stuff in codes, so we can you some rake cmd to look back. My problems is I can't find where are those "# stuff" and "rake cmd" I google and search around, but can't find…
sarunw
  • 8,036
  • 11
  • 48
  • 84
42
votes
9 answers

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…
Ben
  • 836
  • 1
  • 9
  • 19
40
votes
4 answers

Emacs org-mode, repeat tasks M-F but not weekends?

I have tasks that I do every day (e.g bugzilla triage), but I only do those Monday to friday. Not on the weekends. When I use something like this: SCHEDULED: <2015-02-07 Sat ++1d> It repeats it every day, including weekends. Can I change this?
Leo Ufimtsev
  • 6,240
  • 5
  • 40
  • 48
40
votes
2 answers

How Ignore ToDo in specific folder or file with Intellij Idea IDE

i'm using jquery sourcecode for development (later i'm gonna change for min, version) and Intellij Idea detect the TODO in the jquery code, anybody know how ignore the todo in an specific file or folder?
Grubhart
  • 1,106
  • 13
  • 19
40
votes
5 answers

Highlighting comments containing TODO in Sublime Text 2

Is there a way to tell Sublime to highlight comments that contain the word "TODO"? I've looked for plugins that do this but haven't really been able to find much.
samturner
  • 2,213
  • 5
  • 25
  • 31
39
votes
4 answers

PhpStorm Ignore files/directories in TODO feature

Is it possible to exclude certain files from the TODO function in PhpStorm? For example, I'm using the highcharts javascript library. I don't want to see the few dozen or so TODO's they have marked mixed in with my own. I don't want to exclude this…
Jesse Schoff
  • 750
  • 9
  • 24
1
2 3
14 15