Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(codeaction): add removeUnusedImports action #43

Merged
merged 2 commits into from
Jun 27, 2022

Conversation

yaegassy
Copy link
Owner

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.

DEMO (mp4)

coc-intelephense-remove-all-unused-import.mp4

@yaegassy yaegassy merged commit ffdec7f into master Jun 27, 2022
@yaegassy yaegassy deleted the feat/remove-unused-imports branch June 27, 2022 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant