简体   繁体   English

NetBeans 6.9 Python中的TODO注释

[英]TODO comments in NetBeans 6.9 Python

How do I add a TODO comment in NetBeans 6.9 Python? 如何在NetBeans 6.9 Python中添加TODO注释?

I have taken a look under Tools > Options > Miscellaneous > Tasks 我在“ Tools >“ Options >“ Miscellaneous >“ Tasks下进行了查看

However, when I add a comment to my source code: 但是,当我在源代码中添加注释时:

# TODO This won't appear in the Tasks panel

TODO actually turns a different color, but the comment doesn't show up in my Tasks panel. TODO实际上变成了另一种颜色,但是注释没有显示在“任务”面板中。 Is there a way to fix this? 有没有办法解决这个问题?

this seems to be a known bug in netbeans . 这似乎是netbeans中的一个已知错误 Some of the people commenting on the bug point to a Netbeans plugin to solve this. 评论此错误的一些人指出了Netbeans插件可以解决此问题。

go back into tools->options->miscellaneous->tasks and uncheck "show todos from comments only". 返回工具->选项->其他->任务,然后取消选中“仅显示来自注释的待办事项”。 this seems to fix the issue for php on Netbeans 7.0.1. 这似乎解决了Netbeans 7.0.1上php的问题。 It may also work on 6.9 for python if the option exists in that version. 如果该版本中存在该选项,则它也可以在6.9 for python上运行。 Hope that is helpful. 希望对您有所帮助。

For Java project the task window works correctly. 对于Java项目,任务窗口可以正常工作。 But for C++ (in my case) it doesn't work. 但是对于C ++(以我为例),它不起作用。 (NetBeans 7.0.1). (NetBeans 7.0.1)。 I think that feature is only for Java. 我认为该功能仅适用于Java。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM