Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PHP import checkerNew to Visual Studio Code? Get it now.

PHP import checker

Marabesi

|
29,448 installs
| (3) | Free
Know when you are importing a class and is not using it in the file, easy and fast, inspired by PHPStorm
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

php-import-checker

Codacy Badge Build Status  Vscode installs

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.

Features

  • Highlight every unused class that is imported with use

For example if there is an image subfolder under your extension project workspace:

Highlight unused imports

  • Change the color to the one you want to

Change highlight color

Buy Me A Coffee

Known Issues

  • If the imported class with use is inside a comment block, the extension is not going to highlight as a unused class. (#10)

Requirements

Visual Code 1.14 +

Changelog

0.5.0

  • Updated project dependencies (npm audit fixes)

0.4.0

  • Updated project dependencies

0.3.0

  • Support added to "use const" statement (#18)

0.2.9

  • Support added to "use function" statement (#15)

0.2.8

  • 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)

0.2.7

  • Feature to change the highlight color based on the user configuration file (php.import.highlight)

0.1.7

  • Fix highlight on/off when there is only one use statement. Previously for this to work the user would have to change the tab

0.1.6

  • Automatically run the ext when change the active file or opening it in the editor

0.1.5

  • 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.

0.1.4

  • Trigger import check after saving files (#8)

0.1.3

  • Alias detection implemented (#4)

0.0.3

  • Changed the project icon

0.0.2

  • Added better support with a demo gif in the README

0.0.1

  • Ability to see unused imports in the PHP class
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft