IDE comment keywords

拥有回忆 提交于 2019-11-28 20:05:41

I can speak of Eclipse, you can customize it.

Click on Window -> Preferences, and search for General -> Editors -> Structured Text Editors -> Task tags, or for Java -> Compiler -> Task tags (there might be some additional ones like for JavaScript, PHP, StatET, etc.)

TODO, FIXME, XXX

I use some additional ones like:

CHECKME, DOCME, TESTME, PENDING

I personally like to use the DISCUSS/REVIEW tags just to make sure I speak about some issue with someone during a code review or pair programming (e.g., I haven't misunderstood the specification how something should work etc.).

You can also set the priorities assigned to the different task tags there too.

These are known as task tags. In Eclipse they are TODO, FIXME, and XXX.

However, Eclipse allows you to modify the available list of task tags. Go to preferences > Java > Compiler > Task Tags

Here you can modify the available list of task tags, change their priority, and decide if task tags should be case sensitive or not.

To add custom TODO tags in IntelliJ go to:

Preferences > Editor > TODO

Patterns like TODO, FIXME are default in NetBeans as ToDo keywords. You can also add any keyword you want in Tools > Options > Miscellaneous > Tasks.

for enabling/disabling code formatter use: // @formatter:on // @formatter:off

In Eclipse Oxygen 4.7.2 for C/C++ the task tags are configured in Windows -> Preferences -> C/C++ -> Task Tags.

You can also enable searching for task tags as @rlegendi answer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!