Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Escaping someway the Todo keyword in IntelliJ IDEA

I'm developing an example of web application (in Java) which is used to manage Todo tasks. Thus I have an entity called Todo and obviously in many comments I use the Todo word referring to my Todo entity (not to a TODO item regarding the code), e.g.

/**
 * Todo entity model.
 */
@Entity
public class Todo {

in result I'm getting this warning from IntelliJ IDEA

Warning:(*, 2) Complete the task associated to this TODO comment.

I've tried to use {@code Todo} and {@literal Todo}, but the warning does not disappear. How can I escape the Todo keyword in order to get rid of warnings from IDEA?

like image 521
Radu Dumbrăveanu Avatar asked Sep 17 '25 21:09

Radu Dumbrăveanu


1 Answers

You could change the todo setting for IDEA ...

File -> Settings -> Editor -> TODO - adjust the \btodo\b.* entry: either remove it or perhaps change to uppercase and enable the case-sensitive option.

like image 142
haggisandchips Avatar answered Sep 20 '25 11:09

haggisandchips