Vscode-intelephense: Sort and clean imports

Created on 25 Jul 2018  路  6Comments  路  Source: bmewburn/vscode-intelephense

Usually after code refactor, some imports are not necessary and should be removed and re-sorted. Hope Intelephense can support this feature.

BTW, this plugin is the best PHP plugin on VSCode. Fast and stable.

code actions enhancement

Most helpful comment

+1

All 6 comments

I use phpfmt for that demands. It can sort use statements by the length of line, clear unused imports and transform long array() into short [].

i use PHP Namespace Resolver for auto import and auto sort , also it cleans unnecessary imports

and thank @bmewburn your nice plugin 馃槃

+1 for having this added to Intelephense

+1

+1 for sorting/cleaning use statements, and a short array conversion option would be so handy

Would be really useful to do this "on-save"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

steven7mwesigwa picture steven7mwesigwa  路  4Comments

pseudoanime picture pseudoanime  路  3Comments

aleksandervines picture aleksandervines  路  3Comments

ottopic picture ottopic  路  3Comments

mushmelty picture mushmelty  路  4Comments