- 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.
- Open the desired file in the editor.
- Press or or or or .
- From the list that is displayed in the editor, select .
- In the Project tool window, select files or directories where you want the copyright notice to be updated or just open the desired file in the editor.
- Right-click the selection, and choose
You can also update copyright notices when committing changes.
on the context menu.
To have copyright notices updated correctly, make sure that the keyword specified in the copyright profile is a part of the notice definition. Otherwise, IntelliJ IDEA will not detect copyright notices and, instead of updating existing notices, will insert new ones.