ReSharper 2023.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 text

This field contains plain text with optional variables that will be added in the beginning of files and wrapped in comment delimiters.

Variables

The 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 Name

Name 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: 29 December 2021