Intellij IDEA - 生成(Alt + Insert) [英] Intellij IDEA - Generate (Alt + Insert)

查看:684
本文介绍了Intellij IDEA - 生成(Alt + Insert)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 将光标放在某个类变量上。

  2. 点击 Alt + Insert

  3. 生成弹出窗口中,选择 Getter& Setter

  4. Getter& Setter是在变量上方生成的。

  1. Place my cursor on some class variable.
  2. Click Alt + Insert
  3. In Generate popup choose Getter & Setter
  4. Getter & Setter are generated on above the variable.

问题:如何制作Getter& Setter出现在班级的底部?

Question: How to make Getter & Setter appears on the bottom of the class?

推荐答案

IntelliJ没有设施允许在以下位置生成getter / setter课程的最底层。在生成getter和setter之前,您必须将光标放在类文件的底部(或任何您想要的位置)。

IntelliJ doesn't have a facility to allow getters/setters to be generated at the bottom of the class. You would have to place your cursor at the bottom of the class file (or wherever you wanted it) before generating getters and setters.

这篇关于Intellij IDEA - 生成(Alt + Insert)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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