Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij IDEA - Generate (Alt + Insert)

  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?

like image 334
Dmytro Danylyk Avatar asked Jun 30 '13 16:06

Dmytro Danylyk


People also ask

What is Alt insert?

Alt+I is a keyboard shortcut often used to open the Insert file menu. Tip. With Office programs like Microsoft Word, Excel, and PowerPoint to access the Insert tab use the Alt + N keyboard shortcut. How to use the Alt+I keyboard shortcut.

What does Ctrl Alt l do in IntelliJ?

Sometimes code formatting can get out of sync, but there's an easy fix in IntelliJ IDEA. You can use ⌘⌥L (macOS), or Ctrl+Alt+L (Windows/Linux) to reformat a selection of code according to your reformat settings.


1 Answers

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.

like image 125
Makoto Avatar answered Oct 16 '22 23:10

Makoto