【问题标题】:Generate getters and setters in NetBeans [closed]在 NetBeans 中生成 getter 和 setter [关闭]
【发布时间】:2014-01-31 04:50:58
【问题描述】:

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

【问题讨论】:

标签: java netbeans keyboard-shortcuts getter-setter


【解决方案1】:

将光标置于类内,然后按 ALT + Ins 并从上下文菜单中选择 Getters and Setters

【讨论】:

  • 对于 MAC 用户,它是 ctr + i netbeans.org/kb/articles/mac.html
  • 对 SimpleStringProperty 不起作用(设置器),在 netbeans 8.1 上测试
  • 在我的情况下(Netbeans 8.2,Eclipse 键盘映射配置)它是 CTRL+ALT+SHIFT+e(“封装字段)”
  • 对我来说,在 8.2 Alt + e 中也没有工作。CTRL+ALT+SHIFT+e 工作正常谢谢@AydinK。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-04-05
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多