VS Productivity Power Tools "Remove and Sort Usings on Save" not working with R#

When R# is installed, the Productivity Power Tools' functionality "Remove and Sort Usings on Save" seems to not work in Visual Studio CE 2017.

github.com/Microsoft/VS-PPT/issues/81#issuecomment-293684837

They told me to report it to JetBrains, although I doubt that this will result in any solutions, since both parties will likely blame it on each other, leaving me as the sad user with no solution.

Anyway, maybe someone is still willing to solve it.

12 comments
Official comment

Hello Guys,

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. 

Thanks! 

It would be great to see why Remove and Sort Usings on Save from Productivity Power Tools doesn't work when ReSharper is installed. Thanks for taking a look.

1

Awesome, Alexander!

That actually does the trick!

Thanks a lot for this solution.

2

Now "Remove and Sort Usings on Save" sorts but not removes. Using latest versions of the extension and R#.

0

I unchecked -> ReSharper | Options | Environment | Keyboard & Menus | Hide overridden VS menu items

but when I right click on a project -> Power Commands - Remove and Sort Usings on Save is not there ???

(Resharper + VS 2017)

 

 

 

0

With ReSharper 2018.1, the trick, described by Alexander does not work anymore, unfortunately :-(

I'm now unable to use the "Remove and Sort Usings on Save" feature.

Any new fix for this?

1

Hello Uwe!

 

Could you please specify your VS and PowerTools versions. 

Is the issue reproduced in newly created solution?

Thank you.

1

After applying Alexanders fix again, and restarting VS, the issue seems to be gone.

 

Thanks for your reply, Angelina!

0

Hi.  I'm still having this problem and I believe I've correctly tried all the suggestions listed above.  Actually, simply "Remove and Sort Usings" doesn't work at all on a number of using statements.  I even restarted VS.  VS version 15.6.6 and R#2018.1.

Does R# provide it's own overridden version of Remove and Sort Usings, or is that feature still 100% from VS?

0

Hello Patrick!

 

Thank you for the feedback.

Is the problem reproduced in newly created solution?  Could you please run Visual Studio with the following command line: 'devenv /ReSharper.LogFile C:\resharper_log.txt /ReSharper.LogLevel Verbose', reproduce the issue and send us a corresponding 'resharper_log.txt' file (you can do it privately using 'Submit a request' form).

Thank you.

0

Please sign in to leave a comment.