在Eclipse中查找TODO标签 [英] Find TODO tags in Eclipse
问题描述
当我使用Eclipse将未实现的方法添加到Java类中以修复错误时,方法会自动生成并包含// TODO Auto-generated method stub
When I used Eclipse to add unimplemented methods to a Java class to fix an error, methods were auto-generated and include // TODO Auto-generated method stub
是否有一种简便的方法来查看包含此注释的所有方法?某种菜单选项?
Is there an easy way to view all methods which contain this comment? Some sort of menu option?
推荐答案
是否有一种简便的方法来查看包含此注释的所有方法?某种菜单选项?
Is there an easy way to view all methods which contain this comment? Some sort of menu option?
是,请选择以下选项之一:
Yes, choose one of the following:
1)转到Window → Show View → Tasks
(不是 TaskList
).新视图将显示默认情况下控制台"和问题"选项卡的位置.
1) Go to Window → Show View → Tasks
(Not TaskList
). The new view will show up where the "Console" and "Problems" tabs are by default.
2)如其他地方所述,如果打开了有问题的源文件,则可以在滚动条旁边看到它们为小蓝色矩形.
2) As mentioned elsewhere, you can see them next to the scroll bar as little blue rectangles if you have the source file in question open.
3)如果只希望使用// TODO Auto-generated method stub
消息(而不是所有// TODO
消息),则应使用搜索功能(该文件Search-->java-->search string
中的消息使用Ctrl-F键指定该工作区),文件,该项目等)
3) If you just want the // TODO Auto-generated method stub
messages (rather than all // TODO
messages) you should use the search function (Ctrl-F for ones in this file Search-->java-->search string
for the ability to specify this workspace, that file, this project, etc.)
这篇关于在Eclipse中查找TODO标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!