Bruce
Bruce

Reputation: 65

@Override fix-code shortcut in NetBeans

sorry for a silly question but I got angry after seeking the answer in NetBeans and in the net - is there any key shortcut for fixing @Override annotation in NetBeans (something like ctrl+shift+i for imports)?

I do appreciate your answers,

cheers.

Upvotes: 1

Views: 3992

Answers (2)

Peter Stamfest
Peter Stamfest

Reputation: 31

In netbeans 7.2 try Refactor -> Inspect and Transform...

then select the Single Inspection and the "Add @Override annotation".

Then just follow the wizard.

Upvotes: 3

Devon_C_Miller
Devon_C_Miller

Reputation: 16518

If you enable it as a hint, you will get a hint indicator and Alt-Enter will give you the option of adding the @Overrides.

To enable the hint, go to Tools > Options > Editor > Hints > JDK 1.5 and Later > Add @Override annotation

Upvotes: 0

Related Questions