Feature "remove and sort usings on save" from Productivity Power Tools doesn't work in VS2017
There is another solution
Go to tool -->Option-->Text Editor--> tick/untick Remove Unncessary Using
There seems to be an issue with PowerCommands and ReSharper.
Please could you try unticking that checkbox "ReSharper | Options | Environment | Keyboard & Menus | Hide overridden VS menu items" and then check "Remove and Sort Usings on Save" feature once again.
From https://resharper-support.jetbrains.com/hc/en-us/community/posts/115000159930/comments/115000202364
**** UPDATE: The Productivity Power Tools are no longer necessary as this feature is now part of Visual Studio 2017. See makdu's answer. ****
I couldn't get the "Format Document on Save" or the "Sort and Remove Usings on save" features to work on 4 different laptops no matter which version of Visual Studio 2017 I had installed (Community/Pro/Enterprise). I think the issue is that I used the main Productivity Power Tools 2017 extension that installs all the extensions and perhaps this extension has a bug in it?
To fix the problem and get the features working:
- Uninstalled the Productivity Power Tools 2017 extension. (This will leave all the sub-component extensions still installed.)
- Uninstalled the individual Power Commands for Visual Studio extension.
- Restarted Visual Studio.
- Reinstalled the individual Power Commands for Visual Studio extension by itself.
Now the "Format Document on Save" and "Sort and Remove Usings on save" features work.