Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to search through TODO comment list in IntelliJ IDEA?

I'm working on a huge project that has thousands of TODO items. So when I go to the TODO tool window in IntelliJ IDEA it shows all of them. How can I search for a specific one?

like image 203
nadavgam Avatar asked Jul 31 '16 07:07

nadavgam


People also ask

How do you use Todo comments?

To create a TODO commentPlace the caret where you want to create a TODO item and add a comment, for example, by pressing Ctrl+/ , then type TODO or FIXME , and then type your note.

How do I navigate through methods in IntelliJ?

To navigate backwards, press Ctrl+Alt+Left . To navigate forward, press Ctrl+Alt+Right . To navigate to the last edited location, press Ctrl+Shift+Backspace . To find the current caret location in the editor, press Ctrl+M .


1 Answers

If you want to define which TODOs should be found, you are able to set filter and patterns.

In TODO panel click on Filter TODO Items and select Edit Filters

Intellij IDEA TODO Filter edit

Here you are able to set filters and patterns which should be used. More about that is on their site https://www.jetbrains.com/help/idea/2016.2/defining-todo-patterns-and-filters.html. Keep in mind that after you define a new filter, Intellij will start with Indexing (long proccess for huge projects:( )

Also Intellij IDEA TODO tool lets you select from which part you want to see a TODOs (top bar on uploaded image) or you can simply show all TODOs and start typing (classic searching).

like image 114
Hrabosch Avatar answered Nov 10 '22 23:11

Hrabosch