Solved

To Do in java

Posted on 2014-02-28
12
578 Views
Last Modified: 2014-04-03
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
0
Comment
Question by:gudii9
  • 4
  • 3
  • 3
  • +1
12 Comments
 
LVL 14

Assisted Solution

by:CPColin
CPColin earned 100 total points
ID: 39895289
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.
0
 
LVL 7

Author Comment

by:gudii9
ID: 39895867
how to automcatically add TODO without typing. Any shortcut for that?
0
 
LVL 14

Expert Comment

by:CPColin
ID: 39895886
Not that I know of.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 19

Assisted Solution

by:Ken Butters
Ken Butters earned 100 total points
ID: 39896235
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.
0
 
LVL 7

Author Comment

by:gudii9
ID: 39900757
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
0
 
LVL 14

Expert Comment

by:CPColin
ID: 39900783
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.
0
 
LVL 19

Expert Comment

by:Ken Butters
ID: 39901257
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
0
 
LVL 14

Accepted Solution

by:
Geisrud earned 300 total points
ID: 39904533
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.
0
 
LVL 19

Expert Comment

by:Ken Butters
ID: 39904545
@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.
0
 
LVL 14

Expert Comment

by:Geisrud
ID: 39904598
You are correct - I didn't read very carefully.
0
 
LVL 7

Author Comment

by:gudii9
ID: 39937638
I jsut copy pastef // TODO

 which worked fine
0
 
LVL 19

Expert Comment

by:Ken Butters
ID: 39940899
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.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
custom annotations 9 39
java jdbc batch example 8 35
maven module vs maven project 3 24
jsp login check 12 32
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question