How do I search comments made in the code within Intellij IDE for Java

Answered

So the search feature is great but I want to be able to search the program for comments that I made.

I make a lot of comments.

 

//This method is for the account class. .. // This method will be used in Johns class. 

 

How???

0
3 comments

You can use the Structural Search, check the existing templates for searching the comments.

https://www.jetbrains.com/help/idea/structural-search-and-replace.html

0
Avatar
Permanently deleted user

Can you be a bit more specific or provide a screenshot.

 

Say I want to find all instances where I have used the comment //here is the class

 

Do I use the little magnifying glass at the top right of the UI and then type in  "$here$" (this does not work within the confines of the magnifying glass).

How do I execute this search

0

Here is the sample search:

0

Please sign in to leave a comment.