开发者

@Override fix-code shortcut in NetBeans

开发者 https://www.devze.com 2022-12-26 15:24 出处:网络
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 ann开发者_开发知识库otation in NetBeans (something like

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 ann开发者_开发知识库otation in NetBeans (something like ctrl+shift+i for imports)?

I do appreciate your answers,

cheers.


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

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

Then just follow the wizard.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消