To Do in java

gudii9
gudii9 used Ask the Experts™
on
Hi,

I am working in eclipse and coding on it some java web applications. My question is how to put to do so that i can comeback to that part of the code later. How do i come back for that particular To Do if there are 100 To D0 I put. can I uniquely name or number them?



please advise
Any links resources ideas highly appreciated. Thanks in advance
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
CPColinSenior Java Architect
Commented:
Eclipse will highlight lines that contain the word "TODO" or "FIXME" in a comment. Usually when I wrap up a project, I do a text search for the word "TODO" and clean up what I have left over. You can definitely number them or put extra explanations next to them.

I think Eclipse even shows TODO's in the "Markers" view.

Author

Commented:
how to automcatically add TODO without typing. Any shortcut for that?
CPColinSenior Java Architect

Commented:
Not that I know of.
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Another thing you can do is add bookmarks.

You can add a bookmark in similar way that you can add a break-point.

When you add a bookmark you can name it anything you want.

Then to go to that bookmark, you just open up the bookmark view, and click on the named bookmark that you want to go to.

This doesn't impact your code... it's just part of eclipse.

Go to eclipse Help / search for "bookmark" for more detailed information.

Author

Commented:
How to type TODO

just type like

// TODO

or do i need to give space in between TO and DO and also space after //
Please advise
CPColinSenior Java Architect

Commented:
Just try it; Eclipse will make the font bold and put a blue mark along the right edge of the window when you get it right.
The trigger is to just have "TODO" inside of a comment.

By default it is case sensitive... so needs to be upper case TODO.

You can view all of your TODO tasks in a separate window pane easily by going to Window / Show View / Tasks

A separate window will show all your tasks that have TODO on them. You can double click on TODO to open the source code that has that TODO in it.

Attached is the screenshot of the TODO where you could add other tags similar to the TODO if you wanted to.  I believe the default is to have a Fixme and xxx as well.  

(At least I don't remember customizing them for myself and I have those).
3-3-2014-1-04-00-PM.jpg
Systems Administrator
Commented:
In addition to what others have said, use:  Window > Show View > Other... > General > Tasks to open the Tasks View.  This allows you to better manage your //TODO list.


Source:
http://www.dvteclipse.com/documentation/e/Track_Tasks_using_TODO_Markers.html

 I couldn't find a shortcut, but typing //TODO isn't really a lot of work.
@Joe....

Thanks ... believe that opens the same tasks window as this from my prev comment:
You can view all of your TODO tasks in a separate window pane easily by going to Window / Show View / Tasks
Unless the tasks is not visible in your dropdown... but it should be if you are working the default Java perspective.
Joe RudSystems Administrator

Commented:
You are correct - I didn't read very carefully.

Author

Commented:
I jsut copy pastef // TODO

 which worked fine
If that is the solution you are happy with then you should award points to Joe.  He had that very suggestion:

 
I couldn't find a shortcut, but typing //TODO isn't really a lot of work.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial