Skip to content

dengzii/GenerateModuleFromTemplate

Repository files navigation

Generate Module From Template

JetBrains IntelliJ plugins JetBrains IntelliJ plugins

中文 - README

Video Tutorial - YouTube

Create a directory structure from a highly customizable template

Using this plugin, help you create directories and files from the customizable template.

Feature

  1. Custom directory structure.
  2. Support placeholders / ApacheVelocity template language, and replace it when you create a module.
  3. Specify file templates from IDE custom/build-in templates.
  4. Passing placeholders to file template as variables.
  5. Output/import template file. share your template with your partner.

Usage

  1. Configure template in plugin settings: File > Settings > Tools > Module Template Settings.
  2. Create directories from the 'Structure' tab, click the right mouse button to operate the file tree.
  3. FileTree can use placeholders / ApacheVelocity template language , the placeholder should like this -> ${YOUR_PLACEHOLDER_HERE}.
  4. The 'File Template' tab lists which template the specified file uses, you can also use placeholders / attributes for FileName field.
  5. 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.

Changelog

  • 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

Screenshot

About

An IntelliJ platform IDEs plugin use for create module from a highly customizable template

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy