1

Some of use's is not required and I want my Eclipse ide to show this as warning. Which setting sholud I change?

enter image description here

Farid Movsumov
  • 12,350
  • 8
  • 71
  • 97

1 Answers1

1

You can use the free tool PHP-CS-Fixer. It includes the UnusedUseStatementsFixer.php that will detect and remove all unused use statements.

It is also contained in the Eclipse plugin PDT Extensions. Once installed, you can start it by right-clicking the PHP file in Eclipse. Options can be set at:

Eclipse -> Preferences -> PHP -> Code Style -> CS Fixer 

That plugin works with Eclipse Kepler (4.3).

sina72
  • 4,931
  • 3
  • 35
  • 36