Mark Jeronimus
Mark Jeronimus

Reputation: 9541

IntelliJ sorting todo items

How can I find and sort TODO items alphabetically, like in Eclipse?

I can't use the file-search function since I need to find only comments and not strings and literals. With the current mixture of source files/templates/scripts, TODOs already appear in at least the following manners: //TODO, // TODO, # TODO, -- TODO, <-- TODO, not to mention possible occurrences of FIXME or IMPROVE

The TODO-panel doesn't allow sorting or even listing occurrences in the top level of the tree structure. It seems I can only choose between Modules, Packages and Files to be top level nodes.

Upvotes: 3

Views: 986

Answers (2)

walter33
walter33

Reputation: 1019

I was surprised that I cannot filter FIXME issues out of box, but it can be configured in IDEA. Refer to https://www.jetbrains.com/help/idea/using-todo.html. I do not understand why it is not pre-configured ...

enter image description here

Then you can filter by TODO, FIXME

enter image description here

Upvotes: 0

yole
yole

Reputation: 97268

Normally people do not sort their TODO lists alphabetically, but rather use different ways to prioritize their work. Therefore, IntelliJ IDEA does not provide the alphabetic sorting feature. There is an open feature request for this functionality, but it's not currently planned for any future release.

If you need to find a specific TODO item, you don't need to sort the list. Instead, simply click in the TODO view and start typing, and IntelliJ IDEA will locate the TODO item containing the string you've typed.

Upvotes: 3

Related Questions