在NetBeans中生成获取器和设置器 [英] Generate getters and setters in NetBeans

查看:101
本文介绍了在NetBeans中生成获取器和设置器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道如何让NetBeans使用快捷方式生成getter和setter.

I Need to know how to have NetBeans generate getters and setters using a shortcut.

推荐答案

将光标置于类内,然后按 ALT + Ins ,然后从上下文菜单.

Position the cursor inside the class, then press ALT + Ins and select Getters and Setters from the contextual menu.

这篇关于在NetBeans中生成获取器和设置器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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