简体   繁体   English

如何使用键盘快捷键创建默认构造函数(Eclipse)

[英]How To Make A default Constructor with keyboard Shortcut (Eclipse)

伙计们,在 eclipse 的任何类中制作默认构造函数的键盘快捷键是什么(所有版本的通用键盘快捷键)

Type the first letter of your class, then press Ctrl + Space , Eclipse will list suggestions within a combobox.键入班级的第一个字母,然后按Ctrl + Space ,Eclipse 将在组合框中列出建议。 The topmost suggestion is the default constructor.最重要的建议是默认构造函数。 Press Enter , it will be done.Enter ,它会完成。 Reference from : https://stackoverflow.com/a/13322359/6102404参考自: https : //stackoverflow.com/a/13322359/6102404

if you have exiting class in your project just press Ctrl+Space in class body and select as per highlighted.如果您的项目中有退出课程,只需在课程正文中按 Ctrl+Space 并按照突出显示的内容进行选择。

如果您的项目中有退出课程,只需在课程正文中按 Ctrl+Space 并根据突出显示的内容进行选择

When ever you create new class that time highlighted option select it will create default constructor with class当你创建新类时突出显示选项选择它会创建带有类的默认构造函数

当您创建突出显示选项选择的新类时,它将创建默认构造函数

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

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