IntelliJ IDEA 2016.1 Help

Copyright

Prerequisite

Before using copyright profiles and generating copyright notices, make sure that the Copyright plugin is enabled.

Basics

Your project can contain files to be protected by copyright. Instead of generating and editing copyright notices in each file separately, IntelliJ IDEA suggests that you use copyright profiles. Each copyright profile is associated with a certain scope and defines the text and formatting of the copyright notice to be inserted in the files within this scope.

You may need several different copyright notices for files within the same project. In this case, IntelliJ IDEA enables you to define several profiles and associate them with relevant scopes.

You can also declare one of the available profiles as default project copyright profile. The settings of this profile will be applied to any project file that is not included in any scope or belongs to a scope, which has no associated copyright profile.

A copyright profile can contain an explicit plain text of the copyright notice or its definition through a Velocity template. You can type the desired text or a Velocity template manually or import a copyright notice definition from an existing profile.

Note the following:

  • If a file does not belong to any scope with a copyright profile assigned, the default copyright profile is used.
  • If the No copyright option has been set as the Default Copyright Profile in the Copyright settings dialog box, no copyright notice will be created or updated and IntelliJ IDEA will prompt you to configure a profile to apply.

See Also

Reference:

Concepts:

Last modified: 13 July 2016