Visualstudio-docs: Remove unused using with .editorconfig

Created on 21 Feb 2019  路  2Comments  路  Source: MicrosoftDocs/visualstudio-docs

Hello,

There is an option to remove unused using when saving ?

Thank you,

product-question

Most helpful comment

This isn't currently in the built-in tools, but you can apply code cleanup on save with an extension (and include the 'remove unused usings' fixer in your cleanup profile): https://marketplace.visualstudio.com/items?itemName=MadsKristensen.CodeCleanupOnSave

We are working on adding the code cleanup on save option to the built-in tools of Visual Studio. If this is something you are interested in be sure to upvote to help us prioritize the issue.

All 2 comments

@kendrahavens Do you know the answer to this?

This isn't currently in the built-in tools, but you can apply code cleanup on save with an extension (and include the 'remove unused usings' fixer in your cleanup profile): https://marketplace.visualstudio.com/items?itemName=MadsKristensen.CodeCleanupOnSave

We are working on adding the code cleanup on save option to the built-in tools of Visual Studio. If this is something you are interested in be sure to upvote to help us prioritize the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CeciAc picture CeciAc  路  3Comments

JeepNL picture JeepNL  路  3Comments

rlundy picture rlundy  路  3Comments

suhailmahmood picture suhailmahmood  路  3Comments

realbart picture realbart  路  3Comments