Eclipse“添加未实现的方法”快捷方式

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24221825/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:44:24  来源:igfitidea点击:

Eclipse "add unimplemented methods" shortcut

eclipseinheritanceidekeyboard-shortcuts

提问by AlexC

Is there a keyboard shortcut in Eclipse IDE to add unimplemented methods when inheriting an abstract method from a superclass? It's kinda annoying to always have to click on the class name to do it. Thank you

从超类继承抽象方法时,Eclipse IDE 中是否有键盘快捷键可以添加未实现的方法?总是必须点击班级名称才能做到这一点有点烦人。谢谢

回答by evenprime

Ctrl+.then Ctrl1then Entershould work

Ctrl+.那么Ctrl1那么Enter应该工作

Also, you could try to create your single key bindingsfrom these combinations

此外,您可以尝试从这些组合中创建您的单键绑定

回答by chancyWu

If you are using Mac, you may use Command+ .to iterate to the error line and then Command+ 1, then Enterto add unimplemented methods.

如果您使用的是 Mac,您可以使用Command+.迭代到错误行,然后使用Command+1, then Enter添加未实现的方法。

回答by Ratheesh

First select the className using doubleclick on class name or Ctr+. then Ctrl+1+enter

首先使用双击类名或 Ctr+ 选择类名。然后Ctrl+1+回车