Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make IntelliJ know FIXME?

In IntelliJ 12, the FIXME comment is regarded as a normal comment with typo. How to make it known by IntelliJ IDEA just like TODO comment?

like image 796
chance Avatar asked Aug 29 '13 11:08

chance


People also ask

How do I mark a todo in IntelliJ?

In the Settings/Preferences dialog ( Ctrl+Alt+S ), select Editor | TODO. Use a regular expression to specify a custom pattern. This matches the word "optimize" ( \b designates word boundaries) and allows any number of other characters in the comment. Then click OK to save the new pattern.

How do I add a comment todo?

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. View the list of TODO items in the TODO tool window.

How do I search todos in IntelliJ?

First, expand all the todos (view the side menu or by pressing CTRL + numpad + . Then just start typing, and IntelliJ will take you to the first place the string you searched for appears, be it a name of a folder, file or the text of the todo comment itself.

How do I set default comments in IntelliJ?

Add a new commentType /** before a declaration and press Enter . The IDE auto-completes the doc comment for you.


1 Answers

Edit TODO pattern

In Settings/TODO press '+' to add a pattern, add the following pattern: \bfixme\b.*, assign an icon if necessary, apply changes. This should solve your issue.

screenshot of Preferences > Editor > TODO > Edit Pattern

like image 97
lena Avatar answered Sep 18 '22 19:09

lena