Download IDEA CodeMaker, Download IDEA CodeMaker An Easy Java Plugin Generator  From GitHub,

Download IDEA CodeMaker An Easy Java Plugin Generator From GitHub

Download IDEA CodeMaker: A Tool for Simplifying Java Plugin Generation

Download IDEA CodeMaker, Download IDEA CodeMaker An Easy Java Plugin Generator  From GitHub,

The main function

  1. Support for adding custom code templates (Velocity)
  2. Support for selecting multiple classes as the context for code templates

Installation

  1. Open the settings, select “Plugin”
  2. In the right box, click “Install plugin from disk”
  3. Select the above to download the “CodeMaker.zip
  4. Then Click Apply, and then restart IDEA.

Usage

In the Java class editing interface, right-click “Generate,” select the corresponding template to automatically generate code for the current class in the package, and then modify and move it to the appropriate location.

IDEA CodeMaker settings

Download IDEA CodeMaker, Download IDEA CodeMaker An Easy Java Plugin Generator  From GitHub,

The code template requires a class other than the current class as the context, which you can select through the class selection box.

IDEA Java plugin

Download IDEA CodeMaker, Download IDEA CodeMaker An Easy Java Plugin Generator  From GitHub,

Currently, it comes with two templates:

  1. The Model: Generates a class with properties similar to the current class for automatically creating persistent classes corresponding to domain classes.
  2. Converter: This template requires two class contexts as input for the automatic generation of domain classes with lasting transformation classes.

The above two templates are my own work in commonly used templates. You can refer to their wording and create your own code templates.

Template Configuration

Download IDEA CodeMaker, Download IDEA CodeMaker An Easy Java Plugin Generator  From GitHub,

  1. To Increase Template: Click “Add Template” after filling in the relevant configuration (can be null). IDEA needs to restart to take effect, then click Save.
  2. Delete Template: Click “Delete Template” to delete the template, and it also requires a restart to take effect.

Download IDEA CodeMaker, Download IDEA CodeMaker An Easy Java Plugin Generator  From GitHub,

  1. The Template Name: In the Build menu, display the name (English name).
  2. The Class Number: The template requires input context class number. For example, if 1, the current class is input as $class0. If 2, it requires the user to select a class as input: $class0, $class1.
  3. The Class Name: The name of the class generated, configured through Velocity. The context is the same as code templates.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *