Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to ignore Eclipse task tags in certain directories?


In Eclipse (HELIOS) there is an option to scan all source code and search for task tags such as "TODO", "FIXME" etc.
The result is then shown in a fine list.
One can access this list by: Windows->Show View->Tasks.
However, it also scans resources directory and libraries, whose task tags are not of my interest.
How can I filter Task Tags searching by directory exclusion filter?
10x

like image 901
Nir O. Avatar asked Jul 25 '11 11:07

Nir O.


3 Answers

It is possible.

  1. Open the Tasks view. Then press icon with the down arrow (top right corner of the window, next to minimise button) and press "Configure Contents..."
  2. Either add new configuration or modify TODOs
  3. In the Scope section select "On working set:" and press button "Select..." to create a new workspace
  4. Create a new workspace with only selected folders that you want to include
like image 60
Dmitry Avatar answered Nov 14 '22 04:11

Dmitry


Also there is the way I work around that limitation: Define your own tags, i.e. by adding your name or some shortcut and use the task-list's filter function to ignore the rest.

In the preferences you can define your own TODO Tags (for highlighting purposes etc.) or you can leave it with TODO, FIXME, XXX..

Also in the preferences you can redefine the default Comments like "TODO: Auto-generated something" to "TODO Nir: Auto..."

In the Task List you can then filter for exactly those tags.

Cheers, Rob

like image 34
rob Avatar answered Nov 14 '22 06:11

rob


Unfortunately, the answer is that this is not currently possible. You can configure the set of task keywords on a per-project basis along with the priority of each, but no more than that.

like image 3
Tonny Madsen Avatar answered Nov 14 '22 04:11

Tonny Madsen