Skip to Main Content Skip to Search
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Inside the MATLAB Desktop

March 17th, 2008

What’s on my TODO list?

Oftentimes in the course of coding, I find myself with little bits that I don’t want to deal with right away–things that I would like to come back to them later. Like most IDEs, MATLAB allows you to drop annotations which indicate things to do, fix, or otherwise note for later.

By adding a comment with the text: “TODO” or “FIXME” in a MATLAB file, you automatically sign up for this feature. You can then use the TODO/FIXME report to scan all the files in a given directory for these tags, which presents the results to you in the web browser.

You can get to this report using the directory reports-drop down in the Current Directory Browser:

TODO/FIXME report in Directory Reports drop-down

Clicking on the TODO/FIXME report button will cause MATLAB to scan all the files in the current directory, and display each line in the files that have one of the keywords. For example, in my directory I have two files with applicable markers:

TODO/FIXME report in Directory Reports drop-down

You’ll notice that the report also picked up a line with a “NOTE” in it. As an added bonus, we can find up to one additional comment tag, “NOTE” by default, but you can enter whatever regular expression you desire. To specify your own custom tag, replace the text in the text field that reads “NOTE” in the TODO/FIXME report web page (see above screen shot) with your own regular expression.

In general, I recommend using these comments as quick reminders for changes you really, really will work on in the near future. I’ve found such notes lose meaning when viewed by others or even yourself when revisiting the code after it is no longer fresh.

One Response to “What’s on my TODO list?”

  1. Oliver A. Chapman, P.E. replied on :

    A few months ago, I attempted to use this feature for the first time, but couldn’t remember what the key word was to make a “To Do” or “Fix Me” entry. I spent ~20 minutes surfing the documentation and found good documentation about how to generate the report, after I had populated the code with the appropriate key words followed by my meaningful text.

    I called your technical support and it took them ~10 minutes to answer it.

    I’ve just glanced at the help system and it appears that this release retains that poor documentation about how to actually make a “To Do” entry. Am I right?

Leave a Reply


Inside the MATLAB Desktop is written by the MATLAB Interface teams.

Team picture
  • Mike: Thanks Quan!
  • Quan: That’s a cool feature for the see also command. I just got the chance to check my google reader today,...
  • Mike: Harsha, On Windows, I use SnagIt to do the screen caps and annotations. Unfortunately its do not look so nice,...
  • Harsha: I would like to know how you got this kind of border for screenshots?
  • Mike: @Daniel, What are the keyboard shortcuts you use most often? What operations do wish there were shortcuts for?
  • Biswanath Senapati: I am using MATLAB tool for our work. Now I want to integrate matlab desktop (command window) in...
  • Ken: Hi John, I can appreciate your desire for a true Mac user interface. As a Mac user myself, I am constantly...
  • John Haitas: 7 years on… still no native graphics for the Mac. When will Mathworks take time to code a GUI...
  • Ken: Hi Daniel, Your absolutely right - keyboard shortcuts in MATLAB is an area that could use some improvement. Good...
  • Daniel Armyr: Hi. I am one of those old-school people who feels that the command-line has definate merit. However,...

These postings are the author's and don't necessarily represent the opinions of The MathWorks.

Related Topics