search

Home  >  Q&A  >  body text

java - IDEA 如何自动生成带参数的构造函数 Mac快捷键

IDEA 如何自动生成带参数的java构造函数 Mac快捷键?

ringa_leeringa_lee2769 days ago930

reply all(2)I'll reply

  • 高洛峰

    高洛峰2017-04-18 10:36:06

    Write the parameter variables first, command + n --> Constructor, it may be what you want, I have never seen anything faster than this.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:36:06

    Use lombok, just one annotation, @NoArgsConstructor, @RequiredArgsConstructor, @AllArgsConstructor

    reply
    0
  • Cancelreply