[java] Find TODO tags in Eclipse

When I used Eclipse to add unimplemented methods to a Java class to fix an error, methods were auto-generated and include // TODO Auto-generated method stub

Is there an easy way to view all methods which contain this comment? Some sort of menu option?

This question is related to java eclipse todo

The answer is

Is there an easy way to view all methods which contain this comment? Some sort of menu option?

Yes, choose one of the following:

  1. Go to Window ? Show View ? Tasks (Not TaskList). The new view will show up where the "Console" and "Problems" tabs are by default.

  2. As mentioned elsewhere, you can see them next to the scroll bar as little blue rectangles if you have the source file in question open.

  3. If you just want the // TODO Auto-generated method stub messages (rather than all // TODO messages) you should use the search function (Ctrl-F for ones in this file Search ? Java Search ? Search string for the ability to specify this workspace, that file, this project, etc.)

Go TO Window>Show View >Markers

than you will get java task .

java task have all TODOs of your project

Tasks view, under Window -> Show View -> Tasks

Sometimes Window ? Show View does not show the Tasks. Just go to Window ? Show View -> Others and type Tasks in the dialog box.

In adition to the other answers mentioning the Tasks view:

It is also possible to filter the Tasks that are listed to only show the TODOs that contain the text // TODO Auto-generated method stub.

To achieve this you can click on the Filters... button in the top right of the Tasks View and define custom filters like this:

enter image description here

This way it's a bit easier and faster to find only some of the TODOs in the project in the Tasks View, and you don't have to search for the text in all files using the eclipse search tool (which can take quite some time).

  1. Push Ctrl+H
  2. Got to File Search tab
  3. Enter "// TODO Auto-generated method stub" in Containing Text field
  4. Enter "*.java" in Filename patterns field
  5. Select proper scope

Questions with java tag:

Under what circumstances can I call findViewById with an Options Menu / Action Bar item? How much should a function trust another function How to implement a simple scenario the OO way Two constructors How do I get some variable from another class in Java? this in equals method How to split a string in two and store it in a field How to do perspective fixing? String index out of range: 4 My eclipse won't open, i download the bundle pack it keeps saying error log getting " (1) no such column: _id10 " error Instantiating a generic type When to create variables (memory management) java doesn't run if structure inside of onclick listener String method cannot be found in a main class method Are all Spring Framework Java Configuration injection examples buggy? Calling another method java GUI I need to know how to get my program to output the word i typed in and also the new rearranged word using a 2D array Java and unlimited decimal places? Read input from a JOptionPane.showInputDialog box Cannot retrieve string(s) from preferences (settings) strange error in my Animation Drawable Two Page Login with Spring Security 3.2.x Hadoop MapReduce: Strange Result when Storing Previous Value in Memory in a Reduce Class (Java) Got a NumberFormatException while trying to parse a text file for objects Best way for storing Java application name and version properties Call japplet from jframe FragmentActivity to Fragment Comparing two joda DateTime instances Maven dependencies are failing with a 501 error IntelliJ: Error:java: error: release version 5 not supported Has been compiled by a more recent version of the Java Runtime (class file version 57.0) Why am I getting Unknown error in line 1 of pom.xml? Gradle: Could not determine java version from '11.0.2' Error: Java: invalid target release: 11 - IntelliJ IDEA Android Gradle 5.0 Update:Cause: org.jetbrains.plugins.gradle.tooling.util Why is 2 * (i * i) faster than 2 * i * i in Java? must declare a named package eclipse because this compilation unit is associated to the named module How do I install Java on Mac OSX allowing version switching? How to install JDK 11 under Ubuntu? Java 11 package javax.xml.bind does not exist IntelliJ can't recognize JavaFX 11 with OpenJDK 11 Difference between OpenJDK and Adoptium/AdoptOpenJDK OpenJDK8 for windows How to allow all Network connection types HTTP and HTTPS in Android (9) Pie? Find the smallest positive integer that does not occur in a given sequence Error: JavaFX runtime components are missing, and are required to run this application with JDK 11 How to uninstall Eclipse? Failed to resolve: com.google.firebase:firebase-core:16.0.1 How to resolve Unable to load authentication plugin 'caching_sha2_password' issue

Questions with eclipse tag:

How do I get the command-line for an Eclipse run configuration? My eclipse won't open, i download the bundle pack it keeps saying error log strange error in my Animation Drawable How to uninstall Eclipse? How to resolve Unable to load authentication plugin 'caching_sha2_password' issue Class has been compiled by a more recent version of the Java Environment Eclipse No tests found using JUnit 5 caused by NoClassDefFoundError for LauncherFactory How to downgrade Java from 9 to 8 on a MACOS. Eclipse is not running with Java 9 "The POM for ... is missing, no dependency information available" even though it exists in Maven Repository The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. on deploying to tomcat Spring Boot application in eclipse, the Tomcat connector configured to listen on port XXXX failed to start What does 'Unsupported major.minor version 52.0' mean, and how do I fix it? m2e error in MavenArchiver.getManifest() How to use Tomcat 8.5.x and TomEE 7.x with Eclipse? The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files Setting the correct PATH for Eclipse java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries. spark Eclipse on windows 7 Eclipse not recognizing JVM 1.8 Why is JavaFX is not included in OpenJDK 8 on Ubuntu Wily (15.10)? Can't import org.apache.http.HttpResponse in Android Studio web.xml is missing and <failOnMissingWebXml> is set to true Eclipse: How to install a plugin manually? How to solve maven 2.6 resource plugin dependency? Any way (or shortcut) to auto import the classes in IntelliJ IDEA like in Eclipse? Could not load the Tomcat server configuration "Multiple definition", "first defined here" errors Error loading the SDK when Eclipse starts org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]A child container failed during start Spring Boot Program cannot find main class Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved How do I add a resources folder to my Java project in Eclipse Android Studio shortcuts like Eclipse Where can I download Eclipse Android bundle? Eclipse: Java was started but returned error code=13 Eclipse - Installing a new JRE (Java SE 8 1.8.0) Maven:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.7:resources Eclipse error "Could not find or load main class" Eclipse Java error: This selection cannot be launched and there are no recent launches Cannot create Maven Project in eclipse Maven error in eclipse (pom.xml) : Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 This compilation unit is not on the build path of a Java project Access restriction: The type 'Application' is not API (restriction on required library rt.jar) How to configure Glassfish Server in Eclipse manually The Import android.support.v7 cannot be resolved Why won't eclipse switch the compiler to Java 8? Can't fix Unsupported major.minor version 52.0 even after fixing compatibility There are No resources that can be added or removed from the server Error launching Eclipse 4.4 "Version 1.6.0_65 of the JVM is not suitable for this product." Using android.support.v7.widget.CardView in my project (Eclipse) Update Eclipse with Android development tools v. 23

Questions with todo tag:

Find TODO tags in Eclipse