Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add TODO word highlighting to atom editor

In atom some special words such as TODO, FIXME, IDEA, NOTE, ... are automatically highlighted in comments inside code. I want to add some words to this list, how can I do?

like image 837
Red Avatar asked Apr 04 '16 12:04

Red


2 Answers

All of the words you have identified are implemented by the atom/language-todo package and supports TODO, FIXME, CHANGED, XXX, IDEA, HACK, NOTE, and REVIEW words in comments.

language-todo has subsequently been extended to include some extra words in the dkiyatkin/language-todo-extra-words package to include: INFO, DEBUG, REMOVE, OPTIMIZE, UNDONE, TO DO, REFACTOR, DEPRECATED, TASK, CHGME, NOTREACHED, WTF, BUG, ERROR, OMG, ERR, OMFGRLY, WARNING, WARN and BROKEN.

If you wanted even more words then you could extend the grammars of one of the above packages to support the words you would like to see supported. If you need some help with this then feel free to post questions using the atom-editor tag on Stack Overflow or on the Atom Discussion Boards.

like image 87
Richard Slater Avatar answered Sep 25 '22 19:09

Richard Slater


I recommend also todo-show. To open it use Ctrl+Shift+T. Is shows list of all todos in project. Yo can redefine keywords it looks for. It's realy nice to manage all todos in project.

like image 42
Bonanza Avatar answered Sep 24 '22 19:09

Bonanza