IntelliJ IDEA
 
2023.3
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

TODO comments

Last modified: 11 February 2024

Sometimes, you need to mark parts of your code for future reference: areas of optimization and improvement, possible changes, questions to be discussed, and so on. IntelliJ IDEA lets you add special types of comments that are highlighted in the editor, indexed, and listed in the TODO tool window. This way you and your teammates can keep track of issues that require attention.

Example of TODO comments

By default, there are two patterns recognized by IntelliJ IDEA: TODO and FIXME in both lower and upper case. These patterns can be used inside line and block comments of any supported file type. You can modify the default patterns or add your own patterns if necessary.