After file header comment option is bugged in R#7.0

Hello,

The "After file header comment" in the "Blank Lines" section is bugged.

When I'm using the code clean-up option it doesn't create a blank line between the header and the namespace when 1 is specified but when I have it set to 2 then it does space it by a single blank line, however, when I'm creating a new file it's spaced correctly by two lines as expected.

This is the header file I'm using.

--------------------------------------------------------------------------------------------------------------------
<copyright file="$FILENAME$" company="Eyal Shilony">
     © $CREATED_YEAR$ Eyal Shilony, All rights reserved.
</copyright>
--------------------------------------------------------------------------------------------------------------------


I've also attached the live template I'm using to create the file.



Attachment(s):
TypeTemplate.DotSettings.zip
5 comments
Comment actions Permalink

Hello Eyal
     I'm afraid I wasn't able to reproduce this behavior (after manually removing an empty line between header comment and namespace and then running Code Cleanup with Full cleanup profile the line is added back as expected). Could you please attach a .dotsettings file with all ReSharper settings? Thank you!

Andrey Serebryansky

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

Hello Eyal
     Sorry for delayed response! I still could not reproduce this problem, so I've raised an issue: http://youtrack.jetbrains.com/issue/RSRP-329383 and our QA team will investigate it further. Thank you!

Andrey Serebryansky

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

I've doubled check this and I figured it out, it was StyleCop! In the cleanup options I had to uncheck SA1514.

0
Comment actions Permalink

Hello Eyal
     That's great to hear! Thank you!

Andrey Serebryansky

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0

Please sign in to leave a comment.