StyleCop icon indicating copy to clipboard operation
StyleCop copied to clipboard

R# File Header Text not being applied

Open franknezrick opened this issue 9 years ago • 3 comments

With this plugin installed, and a custom header defined in Options -> Code Editing -> File Header Text, running code cleanup on an individual file results in the wrong header being created. Looks like the default header maybe.? On Options -> Tools -> StyleCop "run StyleCop as you type", "Insert text into documentation and file headers", and "Use ExcludeFromStyleCop setting in csproj files" are checked.

franknezrick avatar Jul 06 '16 20:07 franknezrick

Do you have a sample project I can test this with, please?

citizenmatt avatar Aug 29 '16 14:08 citizenmatt

Hi,

I have the same issue. I switched from a stand-alone stylecop installation to this ReSharper plug-in. It works quite well. But I cannot find, where to set the header information texts. This was formerly in the stylecop settings dialogue (right click on project in solution explorer -> stylecop settings). I entered something into the Resharper Settings (Code Editing - File Header Text) but this text is not used when the header is generated. It just shows:

// <copyright file="Filename.cs" company="">
//   
// </copyright>
// <summary>
//   Defines the DatabaseInfo type.
// </summary>

Any help is appreciated :)

Susanne

suklsu avatar Jan 11 '17 10:01 suklsu

Hello,

similar problem here. The correct header text has been entered under

Code Editing | File Header Text

and this text is actually applied when using Cleanup Code (Ctrl + E, Ctrl + C), also for individual files. But the default header is inserted when using Alt + Enter, Enter.

AnatolLemke-AES avatar Mar 29 '17 16:03 AnatolLemke-AES