PhpStorm 2017.1 Help

Associating a Copyright Profile with a Scope

On this page:

Associating a profile with a scope

  1. Open the Settings / Preferences Dialog by pressing Ctrl+Alt+S or by choosing File | Settings for Windows and Linux or PhpStorm | Preferences for macOS, and click Copyright under Editor. The Copyright page that opens displays mappings between the available copyright profiles and scopes.

    Note that unless you have at least one copyright profile and scope, the controls of the Scope-profile combinations area are disabled.

  2. Click /help/img/idea/2017.1/new.png (Alt+Insert). A row to define a new mapping is created.
  3. From the Scope drop-down list, select the desired scope.

    To define a new scope, open the Scopes page or click the link in the lower part of the Copyright page.

  4. From the Copyright drop-down list, select the profile to apply to the selected scope.
  5. Continue composing the list of scope-profile mappings. Use /help/img/idea/2017.1/new.png (Alt+Insert) or /help/img/idea/2017.1/delete.png (Alt+Delete) to add or remove the items. To reorder the mappings, use /help/img/idea/2017.1/arrowUp.png (Alt+Up) and /help/img/idea/2017.1/arrowDown.png (Alt+Down).

Setting the default Copyright profile for a project

The settings of the default profile will be applied to any project file that is not included in any scope or belongs to a scope that has no associated copyright profile.

  1. Open the Settings / Preferences Dialog by pressing Ctrl+Alt+S or by choosing File | Settings for Windows and Linux or PhpStorm | Preferences for macOS, and click Copyright under Editor.
  2. On the Copyright page that opens, select the desired copyright profile from the Default project copyright drop-down list.

    Note that is you select No copyright, any attempt to generate a copyright notice will fail and PhpStorm will prompt you to create a profile to apply.

See Also

Last modified: 19 July 2017