IDEA and Eclipse: how to automatically generate a method when extending a class

My question is very simple 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 extend the class. (Of course, this work is optional, but I want to be sure what to do in my code, so this option will be useful).

thanks:)

+4
source share
3 answers

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

+6
source

IntelliJ: CTRL o shows a list of override / implementation methods

+5
source

IntelliJ: Alt Insert generates all kinds of code, including overriding methods, implementation methods, constructors, getters, setters, delegates, etc.

+3
source

Source: https://habr.com/ru/post/1398164/


All Articles