当我使用Eclipse向Java类添加未实现的方法以修复错误时,方法是自动生成的,并包括// TODO自动生成的方法存根

是否有一种简单的方法来查看包含此注释的所有方法?某种菜单选项?


当前回答

是否有一种简单的方法来查看包含此注释的所有方法?某种菜单选项?

可以,选择以下其中一项:

Go to Window → Show View → Tasks (Not TaskList). The new view will show up where the "Console" and "Problems" tabs are by default. 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. 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 → Search string for the ability to specify this workspace, that file, this project, etc.)

其他回答

是否有一种简单的方法来查看包含此注释的所有方法?某种菜单选项?

可以,选择以下其中一项:

Go to Window → Show View → Tasks (Not TaskList). The new view will show up where the "Console" and "Problems" tabs are by default. 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. 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 → Search string for the ability to specify this workspace, that file, this project, etc.)

进入窗口>显示查看>标记

然后你会得到Java任务。

java任务有你项目的所有待办事项

按Ctrl + H 进入文件搜索选项卡 在包含文本字段中输入“// TODO自动生成的方法存根” 在文件名模式字段中输入“*.java” 选择合适的范围

任务视图,在窗口->显示视图->任务

有时“窗口→显示视图”不显示任务。点击“窗口→显示视图->其他”,在对话框中输入“任务”。