Before using copyright profiles and generating copyright notices, make sure that the Copyright plugin is enabled. The plugin is activated by default. If the plugin is disabled, enable it on the Plugins settings page as described in Enabling and Disabling Plugins.
Your project can contain files to be protected by copyright. Instead of generating and editing copyright notices in each file separately, PhpStorm 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, PhpStorm 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 PhpStorm will prompt you to configure a profile to apply.