IDE comment keywords(IDE 注释关键字)
问题描述
所以我最近才发现 TODO 评论.对于那些不知道的人,大多数现代 IDE 会在注释中识别这个词,并将注释行标记为不同的颜色,以便它脱颖而出.
So I only recently discovered the TODO comment. For those of you that don't know, most modern IDE's will recognize this word in a comment and flag the comment line a different colour so It stands out.
EG.
//Need to talk to Bill about refactoring this code
//TODO:Need to talk to Bill about refactoring this code
您可能会注意到像 Eclipse 或 Rubymine 突出显示 TODO 注释和其他一些不错的功能.
You may notice in IDE's like Eclipse or Rubymine highlight the TODO comment and some nice other features to do with it.
我的问题是:还有哪些其他关键字类似于 TODO?这似乎是一种通过评论与开发人员交流的更好方式,并且该功能应该在 IDE 中更广为人知.毕竟他们的目的是帮助发展..
My question is: What other keywords are there like the TODO? It seems like a much better way of communicating to developers through comments and a feature that should be a bit more widely known in IDE's. Their purpose is to help with development after all..
推荐答案
我会说 Eclipse,你可以自定义它.
I can speak of Eclipse, you can customize it.
点击Window -> Preferences,然后搜索General -> Editors -> Structured Text Editors -> Task tags,或Java -> Compiler-> 任务标签(可能还有一些额外的标签,如 JavaScript、PHP、StatET 等)
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
我个人喜欢使用 DISCUSS/REVIEW 标签,以确保我在代码审查或结对编程期间与某人谈论某些问题(例如,我没有'不要误解规范应该如何工作等).
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.
这篇关于IDE 注释关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:IDE 注释关键字
基础教程推荐
- 在springboot中如何给mybatis加拦截器 2023-04-29
- Maven:无效的目标版本:10 2022-01-01
- 将 Windows 证书导入 Java 2022-01-01
- JPA惰性列表上的流 2022-01-01
- 如何在相机中应用自定义滤镜 [Surfaceview 预览]. 2022-01-01
- 将 double 转换为 Int,向下舍入 2022-01-01
- Java ECDSAwithSHA256 签名长度不一致 2022-01-01
- 在java中使用xpath和selenium解析HTML表格数据 2022-01-01
- 控制台应用程序中的 Java 键盘输入解析 2022-01-01
- doFilter()是在servlet的工作完成之前还是之后执行的? 2022-01-01
