Eclipse下可以添加类似于TODO, FIXME, XXX 这类的自定义任务标签
在IntelliJ下也可以如此:
preference -> Editor -> TODO
发现已有两个标签:
todo.* ---- 对应TODO
fixme.* ---- 对应FIXME
点加号可以添加自定义的TODO标签,如:
xxx.* ---- 对应XXX
有三个图标可选择,自己随意选择。
要查看TODO标签,在软件下方的『TODO』窗口中,点击漏斗按钮可以筛选标签。
- NOTE: Description of how the code works (when it isn’t self evident) 汝等凡人
- XXX: Warning about possible pitfalls, can be used as NOTE:XXX:陷阱
- HACK: Not very well written or malformed code to circumvent a problem/bug. Should be used as HACK:FIXME:补锅踩雷填坑
- FIXME: This works, sort of, but it could be done better. (usually code written in a hurry that needs rewriting) Fuck Me
- BUG: There is a problem here.丢锅埋雷挖坑
- TODO: No problem, but addtional code needs to be written (usually when you are skipping something)情未了