php-import-checker helps you know when a given class is imported but not used, providing a easy way to keep your code clean and organized.
- Highlight every unused class that is imported with
use
For example if there is an image subfolder under your extension project workspace:
- Change the color to the one you want to
- If the imported class with
use
is inside a comment block, the extension is not going to highlight as a unused class. (#10)
Visual Code 1.14 +
- Support added to "use const" statement (#18)
- Support added to "use function" statement (#15)
- Change regex to only match "use" at the start of a line (#12)
- Fix: wrong hightlight when using Trait (#12)
- Fix: typo in the configuration property (#c0f65f9)
- Feature to change the highlight color based on the user configuration file
(
php.import.highlight
)
- Fix highlight on/off when there is only one
use
statement. Previously for this to work the user would have to change the tab
- Automatically run the ext when change the active file or opening it in the editor
- The extension add and removes the highlight from a file once the imported class is used in the code (#9). Previously the user would have to close the file and open again so the extension would highlight the correct imports.
- Trigger import check after saving files (#8)
- Alias detection implemented (#4)
- Changed the project icon
- Added better support with a demo gif in the README
- Ability to see unused imports in the PHP class