Add Copyright Header


Adds a copyright comment at the file's beginning.


Available when the caret is in the first line of a source code file.

How to Use

  1. Configure the First Name, Last Name, and Company fields on the IDE | User Info options page.


  1. Open a source code file.

  2. Place the caret at the first line.

  3. Use the Ctrl + . or Ctrl + ~ shortcut to invoke the Code Actions Menu and select Add Copyright Header from the menu.


After execution, the Code Provider adds a copyright comment.

    // <copyright file="D:\Projects\CodeRushDemo\CodeRushDemo\Program.cs" company="Developer Express">
    //     Author: CodeRush User
    //     Copyright (c) Developer Express. All rights reserved.
    // </copyright>

    using System;
    using System.Collections.Generic;
    // ...

You can also use the h template to add the Copyright Header's text. Refer to the Copyright Header topic for details.


This feature is available as a part of Code Cleanup.

See Also