IDEA and Eclipse : How to automatic generate method when extends a class

后端 未结 3 1473
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-13 20:01

My question is extremely easy when you implement a class. (because Eclipse and IDEA can generate for us).

But, I don\'t know how to do the same when you extends a cl

相关标签:
3条回答
  • 2021-01-13 20:42

    In IntelliJ: AltInsert generates all kinds of code, including overriding methods, implementing methods, constructors, getters, setters, delegators and so on.

    0 讨论(0)
  • 2021-01-13 20:45

    In IntelliJ : CTRLo shows the list of methods to override/implement

    0 讨论(0)
  • 2021-01-13 20:48

    For Eclipse, go into the Source menu (Alt+Shift+s) -> Override/Implement Methods... and this should give you a list of all the methods that can be @overriden.

    0 讨论(0)
提交回复
热议问题