Some of use's is not required and I want my Eclipse ide to show this as warning. Which setting sholud I change?
Asked
Active
Viewed 274 times
1 Answers
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
-
Thank you for answer but I don't want to run this tool after I wrote a code. I want my ide show unused imports. – Farid Movsumov Jun 23 '14 at 10:21
-
CS-Fixer can be installed as Eclipse plugin, see my updated answer. – sina72 Jun 23 '14 at 11:12