Intellij-idea – Intellij IDEA – Generate (Alt + Insert)

intellij-idea

  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.

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

Best Answer

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.