Remove unused namespaces across a whole project or solution at once

前端 未结 10 1967
夕颜
夕颜 2020-12-25 09:46

I know you can do it file by file.

Is there any way to do this in one step for all files in a project?

10条回答
  •  星月不相逢
    2020-12-25 09:52

    There is no need for any plugins in VS 2017 or 2019. Click the bulb icon near any using statement and click Solution next to Fix all occurrences in part.

提交回复
热议问题