Tuesday, November 5, 2013

This is one of my favorite tricks you can use to improve Eclipse. It provides a very nice way of managing your task tags in a large multi-author codebase, where TODOs typically count in the hundreds, if not thousands, and in doing so making the Task View-feature into a very powerful tool for tracking your own development.

 First, set up templates for your tags, including a ${user} and${date} reference.

// TODO (${user}${date}) - ${cursor} // FIXME (${user} ${date}) -${cursor}

You can easily insert these by typing todo and hitting <ctrl><space>. This is useful in that it is possible to keep track of who is responsible for the task tag, but the real magic comes in the next step.

Open the Tasks view, click the little downward-pointing triangle-button in its upper right corner, and select "Configure Contents". You want a new filter based on your user name appearing in the contents of the task tag.

 Configuration example

When this is all set-up, Eclipse will track all of your task-tags.