Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans - fix imports on entire project

Tags:

I'm using netbeans IDE 8.0. When I hit right click inside the editor, one option is Fix imports(CTRL + SHIFT + I). This option adds useful imports and removes unused imports. But How can I use Fix Imports on entire project(not single file)? Is there any way for doing that?

like image 639
hamed Avatar asked May 19 '15 09:05

hamed


People also ask

How do I remove unused imports in Netbeans?

For Netbeans use Ctrl+Shift+I to remove unused import from the file.


1 Answers

Right click on the project (or a package if you want), then choose "Inspect and Transform".

In the dialog box, choose "Organize Imports" , from browse choose imports --> then --> organize imports:

enter image description here

There is also an inspection named "Unused Imports"

like image 60
a_horse_with_no_name Avatar answered Sep 19 '22 21:09

a_horse_with_no_name