Code being reformatted after "remove unused directives in file"

When I choose "Remove unused directives in file" (to remove unused "using"s), a whole heap of other changes are being made to the code, e.g. a header is being added at the start, XML comments and tags are being split onto separate lines, etc.

I've created a Code Cleanup profile with everything unchecked, and selected this new profile in the "Profile to use with silent clean-up" dropdown, but it's still happening. What am I missing?

2 comments
Comment actions Permalink

Hello Andrew

  Does the issue happen for any file where you call "Remove unused directives in file"?


  Please try isntalling R# 9.2 RC https://confluence.jetbrains.com/display/ReSharper/ReSharper+9.2+EAP and check it one again.

Thanks!

0
Comment actions Permalink

Hi, yes the latest RC seems to have fixed it.

Many thanks.

0

Please sign in to leave a comment.