Header Tab

The Header tab allows you optionally update or insert a comment header at the top of each source file. Developers often want to add comment headers to put copyright and other information. The // <fileheader> opening comment and // </fileheader> closing comment are always added to the header. These allow Fast Formatter to update existing headers.

 

Header Tab
Header Tab

 

Control

Description

Insert or replace the header file in all selected C# files

Determines whether Fast Formatter will insert and update headers.

Header text

The header text can be any valid comment text. It does NOT have to be an XML-like tag. There are three substitution keywords that may be added one or more times to the header comment:

[FileName]: This is replaced by the name of the source file.
[Date]: This is replaced by the current date.
[RelativePath]: This is replaced by the relative path of the file. The path is relative to the project.

More Help...

Displays this help.

Use additional regular expression to replace existing header checkbox

Determines if you want to use a custom regular expression to find and replace existing headers. This is used in addition to our normal regular expression search.This is useful if you already have existing headers in your source files and you want to replace them with new headers. You don't need this if you inserted all your headers with the standard opening (// <fileheader>) and closing (// </fileheader>) comments.

Use additional regular expression to replace existing header textbox

The regular expression to use for finding existing headers. It can be any valid .Net regular expression.

Other controls

See the Fast Formatting dialog.