I'm developing a code in Eclipse (java). While debugging the code, I used a lot of System.out.println(...)
. Now I need to delete all these lines. To do this, I wrote System.out.println
in Search->Java, but it hasn't provided any search result. So, how can I find all occurancies of this string System.out.println
?
Search -> File. Input "System.out.println" and select the type of files you want to search in "*.java" (without quotes)
The "Java search" is something different. It doesn't allow you to find stuff in java files but methods/declarations/etc. in java files. For instance declare somewhere in your project "String canYou = "FindMe?";" and then do Search -> Java, input "String" and select "Type" and hit search. It should find all the String uses in you project, including the aforementioned one.
Try writing System.out.println
anywhere in your project, select this text and afterwards press ctrl + alt + g
(sorry don't know exactly what kind of search this stands for) and it will give you all the occurrences of this string in all your projects(workspace-wise). I'm 100% sure it stands for exactly something in search > java - you can take a closer look to see for exactly what. Other than that you can have a conditional execution for the logs - i.e
if(Consts.DEBUG){
Log("something");
}
press Control + H
this will open up the search window, go to File Search tab and look for the system.out.println(
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With