Using this plugin, help you create directories and files from the customizable template.
- Custom directory structure.
- Support placeholders / ApacheVelocity template language, and replace it when you create a module.
- Specify file templates from IDE custom/build-in templates.
- Passing placeholders to file template as variables.
- Output/import template file. share your template with your partner.
- Configure template in plugin settings: File > Settings > Tools > Module Template Settings.
- Create directories from the 'Structure' tab, click the right mouse button to operate the file tree.
- FileTree can use placeholders / ApacheVelocity template language , the placeholder should like this -> ${YOUR_PLACEHOLDER_HERE}.
- The 'File Template' tab lists which template the specified file uses, you can also use placeholders / attributes for FileName field.
- The 'Placeholder' tab's table defines placeholders / attributes for replacing filenames and file templates
NOTE
- The nested placeholder in dir tree will be calculated and merged to a new placeholder, eg:
${${A}_${B}}
, A=a, B=b,result=${a_b}
. - The existing files will be skipped.
- The Java class file name may depend on ClassName, you better keep the class name and file name consistent, else the file name in the template will not effective.
- The placeholders are best not the same as the built-in property of
Apache Velocity
.
- 1.5.0: Fix: specify a template doesn't work., feature: fetch template variables as placeholders when create the file, support specify file template when create the module. ui looks more comfortable.
- 1.4.0: feature: Support export and import template to file, adjust action button position.
- 1.3.1: fix: AucFrame module template bugs.
- 1.3.0: fix: Placeholder don't work when call FileTreeNode.include.
- 1.2.0: feature: all IntelliJ platform IDEs support, file template selection support when edit module template.
- 1.1.0: feature: support create module template, placeholder, file template
- 1.1.0: feature: support create module template, placeholder, file template 1.0: basically feature, generate module directories from template
- 1.0.0: basically feature, generate module directories from template