- In the Project Settings dialog box, open the Copyright Profiles page below the Copyright node.
- Click the Add button
on the toolbar. - In the Create new copyright profile dialog box that opens specify the name of the new profile and click OK. You return to the Copyright Profiles page where the new profile is added to the list of available copyright profiles.
- Specify the copyright notice to be generated. Do one of the following:
- Type the desired plain text.
- Define a Velocity template
,
then click the Validate button to check that the template has been specified correctly.
Find the list of supported Velocity variables in the Copyright Profiles dialog box reference.
-
In the Keyword to detect copyright in comments text box, type a character string
to distinguish copyright notices from other comments during copyright update.
Tip
Make sure that this keyword is a part of the above specified copyright notice. Otherwise instead of updating copyright notices, IntelliJ IDEA will insert new ones.
- In the Project Settings dialog box, open the Copyright Profiles page below the Copyright node.
- Select the desired profile to inherit the settings from.
- Click the Copy button
on the toolbar. - In the Create new copyright profile dialog box that opens specify the name of the new profile and click OK. You return to the Copyright Profiles page where the new profile is added to the list of available copyright profiles.
- View and edit the profile settings. Proceed as during creation of a profile from scratch.
- In the Project Settings dialog box, open the Copyright Profiles page below the Copyright node.
- Click the Import button
on the toolbar. - In the dialog that opens, choose the location of the .ipr file that refers to the copyright profile with the desired notice definition.
- From the Choose profile to import list, that appears, select the desired copyright profile.
- In the Create new copyright profile dialog box that opens specify the name of the new profile and click OK. You return to the Copyright Profiles page where the new profile is added to the list of available copyright profiles.
- Proceed as during creation of a profile from scratch.
- In the Project Settings dialog box, open the Copyright Profiles page below the Copyright node.
- Select the profile you want to discard and click the Delete button
on the toolbar.
