In Visual Studio 2019 how can I remove unused usings on format document?
I have found instructions for previous versions of Visual Studio (Go to Tools > Options > Text Editor > C# > Code Style > Formatting.). I don't see that in Visual Studio 2019.
In Visual Studio 2019 you can remove unused usings with the Code Cleanup command:
And running code cleanup also formats the document.
2.1m questions
2.1m answers
60 comments
57.0k users