donderdag 7 juni 2012

Tasks on Eclipse ( TODO, FIX, Etc.)

I had never used Tasks on Eclipse and yesterday one workmate told me about this feature of Eclipse.

Simple, easy and handly!

One case to explain: Imagine that you want commit your changes on the server but you still have some errors in the code. You decide comments all this error but How you could remember next day where were these commented errors?

Simple, you can add a tag like  // TODO + any comment that you want   ,  and the next day, if you open the eclipse view Tasks (Windows->Show View->Tasks) you can see all these lines where you added the //TODO tag.

Simple, easy and handly!

Also, you can configurate the kind of tags that eclipse will remember for you in his Tasks View.

To setting differents tags you need open Preferences of Eclipse and take a look to the path:  General->Editors->Task Tags.

In this window you can setting new tags and also the priority.

Special Trick!!! If you want use this feature also in .xml, .css or whatever kind of files you have to activate one check box in the previous windows. The text of these check box is  "Enable searching for task tags"  and you can add in the bottom list all the files that you can want that eclipse look for new tags.


To include a task in a .xml file you have to use something like this:   <!-- //TODO Comment-->

This is all!

Geen opmerkingen:

Een reactie posten