Solved

To Do in java

Posted on 2014-02-28
12
589 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
by zero exception 10 83
junit as external jar or library 7 59
Java class and jar 3 61
program arguments vs VM arguments 4 57
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

751 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