Added code action to remove all unused imports in the "use" statement. It only works if intelephense is emitting a diagnostics message regarding the use statement.
If you need more features, such as sorting use statements, we recommend using a formatter like php-cs-fixer. An extension for "coc.nvim" is also available.
Description
Added code action to remove all unused imports in the "use" statement. It only works if
intelephense
is emitting a diagnostics message regarding the use statement.If you need more features, such as sorting use statements, we recommend using a formatter like
php-cs-fixer
. An extension for "coc.nvim" is also available.:CocInstall coc-php-cs-fixer
DEMO (mp4)
https://user-images.githubusercontent.com/188642/175935031-8ff36f34-9621-4bc4-9a35-bca1190ff59a.mp4