Disable code cleanup by creating file headers in Resharper

I tried all the tips that I can find on stackoverflow and google, but nothing I can find will allow the "Reset code" option of resharper from creating headers in each file, for example:

// -------------------------------------------------------------------------------------------------------------------- // <copyright file="FishBiscuits.cs" company=""> // // </copyright> // <summary> // // </summary> // -------------------------------------------------------------------------------------------------------------------- 

I have VS2012, StyleCop and Resharper. In StyleCop, I disabled all attributes that require documentation headers. In Resharper, I disabled everything that looked like it could help. When I move on to clearing the code in the list of things that it’s going to do, it has some options, such as 1600, 1604, 1609, like “Yes”, but “Update the file header” as “No”.

Screenshot from Resharper

In the StyleCop, 1600, 1609 and 1610 settings, the checkboxes are not set, as well as all the parameters of the file headers.

The only thing I can think of is to change these parameters by right-clicking the project and going to the Stylecop settings, so maybe these are not the global settings that Resharper reads. However, I cannot find a way to change the global style settings file.

Any ideas?

+6
source share
2 answers

It looks like the cleanup profile in the update header is combined with what is in the Text Header Text in the ReSharper options.

If you already have your own cleaning profile, you can simply disable the Update file header in the C # section of the profile settings in the Clear code section in the ReSharpers settings, if you use one of the default profiles, then delete all text in the Text Header Text in the ReSharpers settings must stop it.

You mentioned that you use StyleCop, it looks like you need to find the StyleCop for ReSharper section in the ReSharper options and disable Insert text in the documentation and file headers .

Learn more about the JetBrain blog.

+4
source

Check ReSharper -> Options -> Code Editing -> File Header Text.

You might want to empty it. And in the "Clear Code" code configuration, set the "Title Editor" to "None."

0
source

Source: https://habr.com/ru/post/958299/


All Articles