Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Feature "remove and sort usings on save" from Productivity Power Tools doesn't work in VS2017

Does anyone have problem with a feature "remove and sort usings on save" from Productivity Power Tools in Visual Studio 2017. It seems it doesn't work. Any solution for this?

enter image description here

like image 905
DiPix Avatar asked Mar 10 '17 18:03

DiPix


People also ask

How to remove and sort usings on save in Visual Studio?

With the power of productivity tool, this is even more handy! Visual Studio can now take care of it automatically while saving the code file. Once you have the productivity tool installed, you can find the “ Remove and Sort Usings on Save ” from the “ Tools –> Options –> Productivity Power Tools –> PowerCommands –> Generals ” .

What is the productivity power tools for Visual Studio 2017 extension?

Inspired by Mad Kristensen’s approach to Web Extensions, this is a bundle installer that will install the full suite of Productivity Power Tools for Visual Studio 2017. How it works: Every time Visual Studio launches, this extension runs in the background and checks to see if any of the Productivity Power Tools are not installed.

How do I turn off auto save in Visual Studio?

Visual Studio can now take care of it automatically while saving the code file. Once you have the productivity tool installed, you can find the “Remove and Sort Usings on Save” from the “Tools –> Options –> Productivity Power Tools –> PowerCommands –> Generals” .

How to fix power commands for Visual Studio extension not working?

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. Show activity on this post.


2 Answers

There is another solution enter image description here

Go to tool -->Option-->Text Editor--> tick/untick Remove Unncessary Using

like image 58
makdu Avatar answered Oct 09 '22 20:10

makdu


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

like image 32
Heiner Avatar answered Oct 09 '22 20:10

Heiner