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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you mean using statements? First, note that they generally do no harm other that take space. Tools like ReSharper offer automated tricks to do this, however: there was a link in the VS feed a little while ago; it boils down to:
Now if you right-click on the toolbar and Customize… – you should be able to find MyMacros.OrganiseUsings.RemoveAndSortAll – drag this somewhere handy (maybe the Tools menu; you might also want to change the name after placing it).
You can now use this option to run the Remove and Sort command for an entire solution. A big time-saver.
==== code ====