Intellij Idea How to add interface implementation to classes?

Jack picture Jack · Jan 18, 2013 · Viewed 15.7k times · Source

For example I have many classes than implement my interface. After adding new method definition in the interface, how can I fast-add blank interface implementations for all that classes?

Answer

CrazyCoder picture CrazyCoder · Jan 22, 2013

Alt+Enter on the new method in the interface, Implement method:

enter image description here

Press Enter, the list of implementation classes will be shown, select the desired classes using Shift+arrow keys or press Ctrl+A to select all of them, then press Enter again to confirm the choice. Stub implementations will be added to all the selected classes.