All Projects → dengzii → GenerateModuleFromTemplate

dengzii / GenerateModuleFromTemplate

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

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to GenerateModuleFromTemplate

KotlinCodeSorter
🔌A simple plugin for sorting kotlin code. 一个可以对kotlin代码排序的小插件.
Stars: ✭ 25 (-13.79%)
Mutual labels:  idea-plugin, androidstudio-plugin
WiFiADB
An IntelliJ platform plugin use for connecting Android device over WiFi
Stars: ✭ 131 (+351.72%)
Mutual labels:  idea-plugin, androidstudio-plugin
dsl-api-generator
Generates binary compatible and Java interoperable DSL boilerplate code
Stars: ✭ 25 (-13.79%)
Mutual labels:  idea-plugin, androidstudio-plugin
uuid-generator-plugin
An IntelliJ Idea plugin to generate UUID (Universally Unique Identifier), ULID (Universally Unique Lexicographically Sortable Identifier) and CUID (Collision Resistant Unique Identifier)
Stars: ✭ 30 (+3.45%)
Mutual labels:  idea-plugin
idea-return-highlighter
Highlight return keywords.
Stars: ✭ 24 (-17.24%)
Mutual labels:  idea-plugin
TinyPNG
TinyPNG IDEA Plugin for https://tinypng.com/
Stars: ✭ 21 (-27.59%)
Mutual labels:  idea-plugin
toolkit
Toolkit plugin for IntelliJ IDEA
Stars: ✭ 20 (-31.03%)
Mutual labels:  idea-plugin
SideMirror
An Android Studio plugin to mirror your android devices with scrcpy directly from Android Studio.
Stars: ✭ 49 (+68.97%)
Mutual labels:  androidstudio-plugin
sbt-idea-example
SBT based IntellJ plugin template project
Stars: ✭ 20 (-31.03%)
Mutual labels:  idea-plugin
TemplateBuilder
Android Studio模板一键生成插件
Stars: ✭ 39 (+34.48%)
Mutual labels:  androidstudio-plugin
mybatis-builder
An IDEA plugin integrated with MyBatis Generator, compatible with IntelliJ IDEA CE
Stars: ✭ 35 (+20.69%)
Mutual labels:  idea-plugin
intellij-treeInfotip
IDEA项目结构树中的节点添加显示自定义备注文本IDEA DirectoryNode adds custom text for display
Stars: ✭ 48 (+65.52%)
Mutual labels:  idea-plugin
dark-mode-sync-plugin
IDEA plugin for synchronizing themes with the operating system's Dark Mode
Stars: ✭ 38 (+31.03%)
Mutual labels:  idea-plugin
markdown-editor
IntelliJ Platform A full-featured WYSIWYG editor for markdown
Stars: ✭ 92 (+217.24%)
Mutual labels:  idea-plugin
NutzCodeInsight
Intellij idea plugin for Nutz Web Framwork
Stars: ✭ 35 (+20.69%)
Mutual labels:  idea-plugin
cosy
阿里云智能编码插件(Alibaba Cloud AI Coding Assistant)是一款AI编程助手,它提供代码智能补全和IDE内的代码示例搜索能力,帮助你更快更高效地写出高质量代码。
Stars: ✭ 211 (+627.59%)
Mutual labels:  idea-plugin
soar-jetbrains-plugin
Plugin of https://github.com/XiaoMi/soar for JetBrains IDE which for SQL optimize and rewrite. SQL 优化工具 SOAR 的 JetBrains IDE 插件
Stars: ✭ 20 (-31.03%)
Mutual labels:  idea-plugin
go-builder-generator-idea-plugin
IntelliJ IDEA / GoLand golang plugin for generating Builder pattern code of golang struct.
Stars: ✭ 21 (-27.59%)
Mutual labels:  idea-plugin
ansible-vault-editor-idea-plugin
Ansible Vault Editor IntelliJ Plugin with auto encryption/decryption
Stars: ✭ 29 (+0%)
Mutual labels:  idea-plugin
BreakWords
📖 an idea plugin written in Kotlin to help you remember and look the word up.
Stars: ✭ 50 (+72.41%)
Mutual labels:  idea-plugin

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, 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, 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 for FileName field.
  5. The 'Placeholder' tab's table defines placeholders 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.

Build

Dependencies

  • JDK 8+
  • Kotlin
  • IntelliJ IDEA (Community Edition) 19.1+

Import Project

This project is not a gradle or pom project, but a IntelliJ Platform Plugin project, IDEA cannot import this project normally.

In IDEA Community ( necessary) File -> New -> Project from Exsiting Sources -> Create project from exsiting sources, then click next until finish import.

Pressing the Ctrl + Alt + Shift + S to open Project Structure dialog, choose Project tab, change Project SDK to IntelliJ IDEA Community Edition IC-xxxx, then apply change.

Then, edit GenerateModuleFromTemplate.iml in the project root directory, change the type attribute of module node to PLUGIN_MODULE, minimize the IDEA and restore it, the plugin project will be detected.

Finally, Run -> Edit Configuretions -> Alt + Insert -> Plugin -> Apply, the project configuration completed.

Generate Plugin Jar

Run -> Prepare Plugin Module xxx For Deployment

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].