ReSharper 2021.1 Help

File Header Text

ReSharper | Options | Code Editing | File Header Text

This page of ReSharper options allows you to specify a default file header that ReSharper will insert as a comment into C# or C++ files when you apply Code Cleanup with a profile that allows inserting and updating file headers or when you create a new file from template.

You do not have to include comment delimiters in the file header text. ReSharper will automatically insert proper delimiters for the specific language when the header text is applied.

File header textThis field contains plain text with optional variables that will be added in the beginning of files and wrapped in comment delimiters.
VariablesThe variables displayed to the right of file header text have rather self-explanatory names and you can use it in the header text to keep it up to date without manual changes. Click a variable to insert it in the header at the current cursor position.
Embrace File Header into Region with NameName for a region that the file header will be wrapped up with. If this field is left empty, file header is not surrounded by region.
Last modified: 12 July 2021