p42ai / js-assistant

120+ refactorings and code-assists for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=p42ai.refactor
MIT License
119 stars 7 forks source link

Remove unused imports/class methods/variables #59

Open chandan192 opened 1 year ago

chandan192 commented 1 year ago

Hi @lgrammel , This not an issue but a suggestion if we could have support to remove unused imports or unused class variables/methods. We already have support/linting to remove local unused variable.

In typescript we often have to deal with such cases. It will be very much helpful.

image image

lgrammel commented 1 year ago

Thanks, this is a good suggestion!

chandan192 commented 1 year ago

@lgrammel , Adding one more case Remove the unused function parameter "index" or rename it to "_index" to make intention explicit , image