3

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.

Mark Jeronimus
  • 9,278
  • 3
  • 37
  • 50

2 Answers2

3

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.

yole
  • 92,896
  • 20
  • 260
  • 197
  • I want to take note to code for example: STEP 1, STEP 2. It is great, if they are sorted alphabetically – HungNM2 Apr 17 '22 at 13:50
0

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

walter33
  • 776
  • 5
  • 12