自动生成默认和字段构造函数的eclipse快捷方式是什么? [英] What is the eclipse shortcut for auto-generating a default and field constructor?

查看:230
本文介绍了自动生成默认和字段构造函数的eclipse快捷方式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看了一下: Eclipse的快捷键,但是我没有发现任何用于生成构造函数。

I had a look at: Eclipse-Shortcuts, but I found nothing for generating a constructor.

生成标准构造函数的快捷方式是什么?

Whats the shortcut for generating a standard constructor?

推荐答案

类型您的类的第一个字母,然后按 Ctrl + 空格,Eclipse将列出组合框内的建议。最重要的建议是默认构造函数。按输入,即可完成。 (我使用Eclipse Juno,它可以正常工作。)

Type the first letter of your class, then press Ctrl+Space, Eclipse will list suggestions within a combobox. The topmost suggestion is the default constructor. Press Enter, it will be done. (I'm using Eclipse Juno and it works.)

这篇关于自动生成默认和字段构造函数的eclipse快捷方式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆