Guide to using idea automatic code generation plug-in

Time:2020-9-26

Solve repeated development and experience intelligent code

Always busy with repeated coding on working,
A kind of Same lines again and again like loop writing
Don’t know how to solve and where tools being?
Just press these shortcuts for helping!

Video quick view of YouTube | China

Automatic code generation in Java Web Development

  • Open the configuration box to set the generation parameter preference > other settings > > d8gerautocode
  • Check the file to be generated and the generation path, indicate author, author and locale, and save it
  • One click (ALT + Shift + CMD / Ctrl + D) generates code

Guide to using idea automatic code generation plug-in

Swaggermodel field sequential automatic rendering

  • The swaggermodelvo property field contains@ApiModelProperty(
  • One click (ALT + Shift + CMD / Ctrl + O) rendering

JSON string beautification

  • JSON string in arbitrary text
  • One click (ALT + Shift + CMD / Ctrl + J) beautification

MySQL beautification

  • In the case of specified driver, idea provides beautification function (ALT + CMD / Ctrl + L)
  • However, any MySQL text can be beautified with this function
  • One click (ALT + Shift + CMD / Ctrl + L) beautification

Clear white space

  • String in any text
  • Shift + Alt + Ctrl

Guide to using idea automatic code generation plug-in

Case conversion of hump underline

  • Selected word in any text
  • Tips, words are divided into four types: no uppercase, no lowercase, no undershoot, no undershoot, lowercase
  • One key (ALT + Shift + CMD / Ctrl + U) conversion, if not, continue to shortcut until satisfied

String regular batch processing

Get automatic code template

  • d8gerConfiguration template, see above

Guide to using idea automatic code generation plug-in

NASA batch string

  • inputnasa(ignore case), shortcut key (ALT + Shift + CMD / Ctrl + n) to obtain NASA configuration template
  • Change the configuration according to the configuration document, input multi line string data source, and press the shortcut key again

Regex regular technique

  • inputregex(ignore case), shortcut key (ALT + Shift + CMD / Ctrl + n) to get regex template
  • Important note: the template gives all the basic skills of regular expression, including the idea advanced skills, and GitHub simplified regular expression project

Guide to using idea automatic code generation plug-in

summary

  • Project address, originality is not easy, please pass by the old fellow for me, thank you.
  • Video tutorial

    • Youtube
    • Domestic web pages
    • Feel troublesome? Dele: wechat > Video number > search for ‘bigbrother’
  • Thank you for your support!

Guide to using idea automatic code generation plug-in