简体   繁体   English

Eclipse快捷方式,用于创建尚未定义的方法

[英]eclipse shortcut for creating a method that is not defined yet

A quick question. 一个简单的问题。

when I write my code I first create the structures, (using methods that are not yet implemented) obviously at this point I get errors. 编写代码时,我首先创建结构(使用尚未实现的方法),此时显然会出现错误。 but then I go back and start creating the method. 但是我回去开始创建方法。 There is a short cut with mouse that if you hover over the method it pops some options and one of them lets you to create the method with some default return value, short cut with mouse有一个short cut with mouse ,如果将鼠标悬停在方法上,它将弹出一些options ,其中一个options可让您使用default返回值create the method

So my question is is there a keyboard short cut that lets me create that specific method just like when I create it with mouse short cut (not all of them)? 所以我的问题是,是否有keyboard short cut可以让我创建该特定方法,就像我用鼠标快捷键创建(不是全部)一样?

请写这样一个方法的名称example()然后按Ctrl + 1,进入

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

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