{"id":31977697,"url":"https://github.com/caofancpu/d8gerautocode","last_synced_at":"2025-10-14T21:49:31.932Z","repository":{"id":105243478,"uuid":"229872249","full_name":"caofanCPU/D8gerAutoCode","owner":"caofanCPU","description":"🔥🔥🔥 🚀 重复编码老瞎忙,⚡️写来写去那几行, 🌱 不知工具在何方?🍻 八哥智能一键帮!","archived":false,"fork":false,"pushed_at":"2022-03-27T16:48:56.000Z","size":11384,"stargazers_count":151,"open_issues_count":0,"forks_count":52,"subscribers_count":4,"default_branch":"Vip587","last_synced_at":"2023-10-20T18:40:19.662Z","etag":null,"topics":["code-generator","easter-egg","idea-plugin","java","javaweb","json-parser","regex-util","smart-contracts"],"latest_commit_sha":null,"homepage":"https://plugins.jetbrains.com/plugin/13576-d8gerautocode","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caofanCPU.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-12-24T04:50:57.000Z","updated_at":"2023-10-20T18:40:28.632Z","dependencies_parsed_at":null,"dependency_job_id":"a549e36d-155f-46d7-8054-14cc17fdf58b","html_url":"https://github.com/caofanCPU/D8gerAutoCode","commit_stats":null,"previous_names":[],"tags_count":12,"template":null,"template_full_name":null,"purl":"pkg:github/caofanCPU/D8gerAutoCode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caofanCPU%2FD8gerAutoCode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caofanCPU%2FD8gerAutoCode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caofanCPU%2FD8gerAutoCode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caofanCPU%2FD8gerAutoCode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caofanCPU","download_url":"https://codeload.github.com/caofanCPU/D8gerAutoCode/tar.gz/refs/heads/Vip587","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caofanCPU%2FD8gerAutoCode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021375,"owners_count":26087023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-generator","easter-egg","idea-plugin","java","javaweb","json-parser","regex-util","smart-contracts"],"created_at":"2025-10-14T21:49:00.942Z","updated_at":"2025-10-14T21:49:31.910Z","avatar_url":"https://github.com/caofanCPU.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# D8gerAutoCode\n\n\u003ca href=\"https://github.com/caofanCPU/D8gerAutoCode\"\u003e\u003cimg alt=\"GitHub commit activity\" src=\"https://img.shields.io/github/commit-activity/m/caofanCPU/D8gerAutoCode\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/caofanCPU/D8gerAutoCode/stargazers\"\u003e\u003cimg src=\"https://badgen.net/github/stars/caofanCPU/D8gerAutoCode\" alt=\"stars\"\u003e\u003c/a\u003e\n\u003ca href=\"https://plugins.jetbrains.com/plugin/13576-d8gerautocode\"\u003e\u003cimg src=\"https://img.shields.io/jetbrains/plugin/d/13576\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/caofanCPU/D8gerAutoCode\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/caofanCPU/D8gerAutoCode\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/caofanCPU/D8gerAutoCode/issues\"\u003e\u003cimg src=\"https://badgen.net/github/open-issues/caofanCPU/D8gerAutoCode\" alt=\"issues\"\u003e\u003c/a\u003e\n\u003ca href=\"http://file.debuggerpowerzcy.top/power/html/IntelliJBestAction.html\"\u003e\u003cimg src=\"https://img.shields.io/github/search/caofanCPU/D8gerAutoCode/D8ger\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/caofanCPU/D8gerAutoCode/pulls\"\u003e\u003cimg src=\"https://badgen.net/badge/PRs/welcome/cyan\" alt=\"PRs Welcome\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/D8ger\"\u003e\u003cimg src=\"https://badgen.net/badge/organization/join%20us/cyan\" alt=\"open-source-organization\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/caofanCPU/D8gerAutoCode/blob/master/LICENCE\"\u003e\u003cimg src=\"https://badgen.net/github/license/caofanCPU/D8gerAutoCode?color=green\" alt=\"license\"\u003e\u003c/a\u003e\n\n[![Stargazers over time](https://starchart.cc/caofanCPU/D8gerAutoCode.svg)](#)\n\n## IDEA Code Automatically Generate Plugin • `For Java Version`  \n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"http://file.debuggerpowerzcy.top/power/D8ger-V5.jpg\" /\u003e \n\u003c/div\u003e\n\n\u003e [中文说明](./README_CN.md)\n\n## Attention\nThe latest version is **4.1** is approved by the official on 10th, May.  \nIf you can't fetch it, then [click here](https://github.com/caofanCPU/D8gerAutoCode/releases/tag/4.0) to download ~~.zip~~ file.  \nImportant: This version has been implemented [DSP(D8ger Series Plan)](https://www.processon.com/view/5f96a5f35653bb06ef1870e8).  \nThat is, some functions have been migrated to another plugin named [LaoYouTiao](https://github.com/caofanCPU/LaoYouTiao). After testing, installing two plugins will not affect performance. So, I hope you use happy and give me a 🌟, thx!\n\n### Preface\nAs JetBrains' said, I believe that you should be good use of tools will save you precious hours on your busing work.\n\nI always wonder, \"If someone else has already solved the repeating work, why do I need to repeat it again?\"\n\nWell, that's a valid question for my drive to find the repeat parts at daily work and develop this plugin to save my time.  \n\n### [Quick Start](http://www.debuggerpowerzcy.top/home/2020/03/14/D8gerAutoCode%E6%8F%92%E4%BB%B6%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/)\n\u003ca href=\"http://file.debuggerpowerzcy.top/power/html/IntelliJBestAction.html\" target=\"_blank\"\u003eZN程序员福利\u003c/a\u003e\n\n### Convention\n- The general problem provides standard solutions\n- The personalized problem only provides example solutions\n\n### Original design intention\n- Remove the fixed duplication coding for improving efficiency in development  \n- Provide available code templates that can be used without modification  \n- Support code directory configuration, only by self-guided package intelligent programming can be done in one-click  \n- Support user-defined configuration, you can specify which file to be generated  \n\n### Features\n\n- ~~Camel-Underline-Uppercase-Uncapitalize-Lowercase can be converted to each other by shortcut~~ `alt` + `shift` + `cmd` + `U`\n- The comments of generated codes support English(Default) | Chinese Simplified(Optional) configuration\n- ~~JSON formatting and single line text conversion, supporting section and whole document, default shortcut~~ `alt`+`shift`+`cmd`+`J` | `S`\n- Generating `data table definition SQL` | `Mo` | `Mapper` | `Handler`, single table addition, deletion, modification and search with paging in one click\n- Under the help of SwaggerApi generating `Vo` | `Controller` with friendly document description, in addition to this, supporting `Vo` field automatic sorting\n- For smart coding, you just need one shortcut default as `alt`+`shift`+`cmd`+`D`\n- Supporting customer configuration, for example, specify the author who you are\n- Reserve easter eggs, you can try to edit the blank file in IDEA and type `d8ger` to get the default configuration template\n- ~~Reserve easter eggs, edit the blank file in IDEA and enter `nasa` to get the NASA configuration file template. This is very useful and efficient for handling multi-lines, especially SQL field naming processing.~~\n- ~~Reserve easter eggs, edit the blank file in IDEA and enter `regex` to get some commonly used regular expressions. Other code Easter eggs will be added later.~~\n- For automatic sorting `Vo` field , you just need one shortcut default as `alt`+`shift`+`cmd`+`O`\n\n### Using manual(v3.0+)\n1.Open the configuration box to set the generation parameters, `Preference` --\u003e `Other Settings` --\u003e `D8gerAutoCode`\n\n2.Check the file to be generated and choose the generation path, rewrite `author`、`apiUrlPrefix` and `locale`, and click the button to save your configuration.  \n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"http://file.debuggerpowerzcy.top/power/D8King.jpg\" /\u003e \n\u003c/div\u003e\n\n### Using manual(under v3.0)\n1. Create Model Class\n\n2. Select the class name and press the (default) shortcut `alt`+`shift`+`cmd`+`D`\n\n3. Under the default configuration, `D8gerAutoCode` directory and `data table SQL definitions` and **Web codes** will be generated\n\n4. So, What you need to do:\n    - Under a multi-module project, configure the generated file output directory, for example, **`Mo.java`** should be moved into the `model` directory  \n    - Add non-null constraints to **`xx.sql`** as required  \n    - If you generated the **Controller.java** file, please note the interface returns type of **`Object`**, it should be modified to the project's uniform return type  \n    - In the above steps the `xx.java` file will report some errors, ***don't worry***, these just require you to import packages\n\n5. Default configuration file template for easter egg:\n    - In the ***`resource`*** root directory of the module where the `Model class` is located, create `d8ger.properties` property configuration file\n    - Type `d8ger` and click on `Tools`-\u003e `D8ger`-\u003e `D8gerMore`, and you will find some surprise\n\n6. ~~Regex template for easter egg:~~\n    - ~~Choose any blank file, Type `regex` and click on `Tools`-\u003e `D8ger`-\u003e `D8gerMore`, and you will find some surprise~~\n\n7. ~~NASA template for easter egg:~~\n    - ~~Choose any blank file, Type `nasa` and click on` Tools`-\u003e `D8ger`-\u003e `D8gerMore`, and you will get the NASA manual~~\n    - ~~Follow the manual, custom your config and write your own multi-lines need to be batch handled, then you will find some surprise~~\n\n8. ~~Camel-Underline-Uppercase-Uncapitalize-Lowercase circle convert by one-click~~\n    - ~~Choose word text in any editing file, press `alt` + `shift` + `cmd` + `U`, you`ll find the changed word~~\n    - ~~If not satisfied just press the shortcut again and again util you are.~~\n\n9. You will get the following default configuration information\n    - It's recommended that you change the configuration items\n        - `author` (you can't sign my name for the pits you dug!)\n        - `apiUrlPrefix` (the interface url prefix should be configured as the project interface unified URL prefix)\n        - generate file output directory under a multi-module project\n    - As for `boolean` configuration items, let you choose which files need to be generated, and specify output directory is optional\n\n\u003e By the way, these default shortcuts used in Mac OS, if you use Windows just take `cmd` into `ctrl`.\n\n### How to install\n\u003ca href=\"https://plugins.jetbrains.com/plugin/13576-d8gerautocode\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://cdn.jsdelivr.net/gh/YiiGuxing/TranslationPlugin@master/images/button-install.png\" alt=\"Get from Marketplace\" title=\"Get from Marketplace\"\u003e\n\u003c/a\u003e\n\n- `Preference` --\u003e `Plugins` --\u003e `Marketplace` --\u003e type `D8` --\u003e install\n- [IDEA official plugin library installation](https://plugins.jetbrains.com/plugin/13576-d8gerautocode)  \n- As for `Source installation` requires you're familiar with Gradle, I will add more details about how to develop a plugin by ***Gradle*** later\n\n### Bug \u0026 Question\n- Known issues\n\u003e Modify the `d8ger.properties` file before generating code, the configuration file does not take effect\n\n```\nSolution\n0. If you upgrade version 3.0+, you won`t see it again.\n1. Because the IDEA file uses the VFS mechanism, as a plug-in to use the monitoring file I think it is not cost-effective  \n2. I also found a reason aboub editing .properties file, sometimes it will take one or two minutes to refresh after you finished  \n3. So, press `cmd` + `s` to force refreshing .properties file and you will solve it.\n```\n\n\u003e The icon of plugin shows error like this: red square with a cross\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"http://file.debuggerpowerzcy.top/power/W-D8ger.png\" /\u003e \n\u003c/div\u003e\n\n```\nSolution\n1.This issue is caused by Intellij IDEA of new version feature.\n2.Try to upgrade the version of Intellij util 2019.3.*(greater than 2019.2.*), you'll fix it.\n```\n\n[Other issues, please come to join room](https://github.com/caofanCPU/D8gerAutoCode/issues)\n\n### VersionRoadHistory\n- 4.1\n    - Fix 'D8gerAutoCode' error file path parsing while in WINDOWS system. For more detail, please refer [issue2](https://github.com/caofanCPU/D8gerAutoCode/issues/2)\n\n- 4.0(HIGH.START)\n    - Important note: This time the function is migrated and upgraded, the plug-in has been divided into functions, the purpose is to be full-time and dedicated, and the general functions are sinking to serve more programmers\n        - No.0: Each plug-in is positioned in two aspects, one is efficient coding, and the other is high-quality knowledge links to help users obtain enough useful information to improve their skills\n        - No.1: [LaoYouTiao](https://github.com/caofanCPU/LaoYouTiao), **Published**, located JetBrains full product plug-in, General functions, covering text parsing, numerical processing, shell script processing\n        - No.2: [D8gerAutoCode](https://github.com/caofanCPU/D8gerAutoCode), **Published**, located IntelliJ IDEA, auto coding\n        - No.3: D8gerByteSleep, Hatching, located PyCharm\n        - No.4: D8gerJustGo, Hatching, located GoLand\n        - No.5: D8gerAndison, Hatching, located Android Studio\n        - No.6: D8gerWebit, Hatching, located WebStorm\n        - No.7: RoadMap refers [DSP(D8ger Series Plan)](https://www.processon.com/view/5f96a5f35653bb06ef1870e8)\n    - Function migration:\n        - BeautifulJSON、SimplifyOneLine、BeautifulMySQL、CamelUnderlineConvert、D8gerMore are migrated into plugin named [LaoYouTiao](https://github.com/caofanCPU/LaoYouTiao)\n        - The shortcut keys and usage methods have not changed, only the code generation functions related to Java are retained\n- 3.4\n    - Addition: 'OhMyZSH' easter eggs, try to type 'ohmyzsh' in the blank file in IDEA to get some useful linux commands. I'm sure you'll save much time.\n    - BugFix: Fix donate url(I'm waiting for your 🌟 the project on the github).\n    - Optimization: 'BeautifulJSON', 'SimplifyOneLine' and 'BeautifulMySQL' now supports section or whole document convert.\n- 3.2\n    - BugFix: Fix 'BeautifulJSON' issue when parsing complex JSON string.\n    - Optimization: 'CamelUnderlineConvert' now supports Timestamp-LocalDateTime convert, select the text and use origin shortcut `alt` + `shift` + `cmd` + `U` to find out.\n- 3.1\n    - BugFix:\n        - Fix config item `locale` problem when selected as `ZN`, and before the 3.0 version`s comment was English default.\n        - Fix SQL definition in x.sql file ✌️.\n        - Fix batch insert records in xMapper.xml file cause `id`, `createTime`, `updateTime` all should be according to the Database.\n    - Optimization: Config item `autoDetectSQLTimeColumn` now is more intelligent. If you checked, `createTime` and `updateTime` would be generated perfectly in there right position.\n- 3.0\n    - Addition:\n        - Grand celebration for `D8gerAutoCode` getting his face! Now you can config the generated property parameters by setting GUI.\n        - First, Open the configuration box to set the generation parameters, `Preference` --\u003e `Other Settings` --\u003e `D8gerAutoCode`\n        - Then, Check the file to be generated and choose the generation path, rewrite `author`、`apiUrlPrefix` and `locale`, and click the button to save your configuration.\n    - Optimization: Support project level setting parameters for non-invasive, d8ger.properties should exist invisible.\n    - Adjustment: Remove the generated params by `d8ger.properties` file, replace of D8gerAutoCode setting GUI.\n- 2.5\n    - Addition:\n        - Add `autoDetectSQLTimeColumn` configuration for supporting disable default generating `create_time` and `update_time` column definition in SQL.\n        - Add `mapperBatterThenRepository` configuration for supporting custom mapper annotation in both SpringMVC and SpringBoot.\n        - Add `selectOneByExample` in Mapper.java for supporting query one record.\n        - Add `insertSelectiveWithId` in Mapper.java for supporting insert `non null` field and `null` field will be filled with the database default value.\n    - Optimization: 'cause `id` is the primary key, all insert operations should exclude `id` column.\n    - BugFix:\n        - Generation `update_time` column definition remove the rare comma.\n        - Troubleshooting the rare dir named `D8gerAutoCode`, now you can see it only with unspecified directory configuration.\n    - Adjustment: Remove `ServiceInterface` and `ServiceImpl`, 'cause I think `Handler` is more suitable.\n- 2.4\n    - Addition: One-click to beauty MySQL, isn't fragrant?\n    - Optimization: String parsing performance.\n    - Attention: Select your MySQL text, ctrl + alt + shift + `B` will back a surprise.\n- 2.3\n    - BugFix: Json format bug.\n    - Addition:\n        - NASA easter eggs, try to type `nasa` in the blank file in IDEA to get the nasa-template.\n        - NASA easter eggs, multi-lines can be batch handled with the nasa-template, special for sql columns.\n    - Optimization: \n        - Optimize some regex performance.\n        - Support linebreak or comma as the delimiter.\n        - Support windows linebreak when rendering origin code.\n    - Attention: \n        - When execute auto-coding, you should be careful at the linebreak, it maybe different from your project config.\n    - Adjustment: \n        - Icons changed for align, friendly view etc.\n        - The manual of this plugin has been moved to my \u003ca href=\"http://www.debuggerpowerzcy.top/home/2020/03/14/D8gerAutoCode%E6%8F%92%E4%BB%B6%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/\"\u003ewebsite\u003c/a\u003e.\n- 2.1\n    - BugFix: add Uncapitalize, and the circle is Camel-Underline-Uppercase-Uncapitalize-Lowercase.\n    - Optimization: Optimize some regex performance.\n    - Attention: Regex easter eggs add some very useful regex search-replace skills hidden in JetBrains's IDE products. Try to learn, and you will save much time at working.\n- 2.0\n    - BugFix: Modify method name in Controller.java.\n    - Addition:\n        - Remove repeat work of moving file into directories for smart coding.\n        - Camel-Underline-Uppercase-Lowercase can be converted to each other by shortcut `alt` + `shift` + `cmd` + `U`.\n        - Regex easter eggs, try to type `regex` in the blank file in IDEA to find it.\n    - Optimization: Optimize source code and improve performance.\n    - Attention: If the icon of plugin shows error(red square with a cross), try to upgrade the version of Intellij util 2019.3.*(greater than 2019.2.*).\n- 1.24\n    - BugFix: Update method named `updateBatchByPrimaryKeySelective` in mapper.xml.\n    - Addition: Set default language English and you can config it as Chinese Simplified, as before, typing `d8ger` for the latest configuration template.\n    - Attention: You should configure your database connection like `allowMultiQueries=true` for supporting batchUpdate operation.\n- 1.23\n    - BugFix: Fix required dependencies by JetBrains's suggestion for some known compatibility issues.\n    - Addition: Add JSON-formatter and WhiteChar-cleaner.\n    - Attention: Can you 🌟 the project on the github?\n- 1.22\n    - BugFix: Fix README of style, description, picture problems.\n    - Enhance: Enhance profile for generating codes by using regex to replace the circle of matching string.\n    - Attention: Can you 🌟 the project on the github?\n- 1.21\n    - BugFix: Fix README of style, description, picture problems.\n    - Addition: Add MoExample autoCoding for supporting simple sql.\n    - Attention: Can you 🌟 the project on the github?\n- 1.20\n    - Completion: Auto coding for Mo/Example/Mapper/Xml/SQL/Service completed, wow!\n    - Attention: Can you 🌟 the project on the github?\n\n### Contribute\n- Please give me a 🌟\n- Raise demand, write the repetitive problems you often handled at daily work in [issue](https://github.com/caofanCPU/D8gerAutoCode/issues)\n- Invite me to sit at the 🍦 shop\n\u003ctable\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" style=\"width: 200px;\"\u003e\n        \u003ca href=\"https://github.com/D8ger\"\u003e\n          \u003cimg src=\"http://file.debuggerpowerzcy.top/power/WX.png\" style=\"width: 400px;\"\u003e\u003cbr\u003e\n          \u003csub\u003e微信\u003c/sub\u003e\n        \u003c/a\u003e\u003cbr\u003e\n      \u003c/td\u003e\n      \u003ctd align=\"center\" style=\"width: 200px;\"\u003e\n        \u003ca href=\"http://www.debuggerpowerzcy.top/\"\u003e\n          \u003cimg src=\"http://file.debuggerpowerzcy.top/power/ZFB.png\" style=\"width: 400px;\"\u003e\u003cbr\u003e\n          \u003csub\u003e支付宝\u003c/sub\u003e\n        \u003c/a\u003e\u003cbr\u003e\n      \u003c/td\u003e\n      \u003ctd align=\"center\" style=\"width: 200px;\"\u003e\n          \u003ca href=\"https://github.com/caofanCPU\"\u003e\n            \u003cimg src=\"http://file.debuggerpowerzcy.top/power/MX.jpg\" style=\"width: 400px;\"\u003e\u003cbr\u003e\n            \u003csub\u003eMiXin\u003c/sub\u003e\n          \u003c/a\u003e\u003cbr\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n### Thanks\n\u003ca href=\"https://www.jetbrains.com/?from=D8gerAutoCode\"\u003e\n    \u003cimg border=\"0\" src=\"http://file.debuggerpowerzcy.top/power/jetbrains-variant-4.svg\" width=\"131\" alt=\"JetBrains\"\u003e\u003cbr\u003e\n    \u003csub\u003eWith JetBrains team's open source certificate supporting, this project will continue to develop in the spirit of open source\u003c/sub\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaofancpu%2Fd8gerautocode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaofancpu%2Fd8gerautocode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaofancpu%2Fd8gerautocode/lists"}