Skip to content

Postfix Templates

Postfix templates offer the fastest way to generate code — just type a suffix after a variable name and press Tab or Enter.

Available Templates

TemplateDescriptionExample
.allsetGenerate all setters with default valuesuser.allsetuser.setName(""); user.setAge(0);
.allsetnGenerate all setters without default valuesuser.allsetnuser.setName(); user.setAge();
.allgetGenerate all getters with variable assignmentsuser.allgetString name = user.getName();
.allaccessorGenerate chained accessor setter callsuser.allaccessoruser.setName("").setAge(0);
.allbuilderGenerate full builder chainUser.allbuilderUser.builder().name("").age(0).build();

How to Use

  1. Type a variable name followed by one of the postfix suffixes:
java
user.allset
  1. Press Tab or Enter
  2. The template expands immediately

Demo

Generate All Setter

Requirements

Postfix templates are currently available for Java files. Support requires IDE build version >= 213.

Tips

  • Postfix templates are faster than the Alt+Enter intention actions for quick code generation
  • They work with any variable in scope — no need to position the cursor on the type declaration
  • .allbuilder works with the class name directly (e.g., User.allbuilder), not a variable

Released under the Apache 2.0 License.