Update Copyright Header¶
Steps to update copyright headers:
Define scopes to apply the copy right header to:
Open properties Ctrl Alt S and search for
ScopesSelect packages for the scope and click
Include Recursively
Apply copyright settings to Scope:
Open properties
ctrl alt sand search forCopyrightAdd copyright entry and apply previously created scope

Create copyright profile:
Open Settings/Editor/Copyright/’Copyright Profiles’
Add copyright text without borders
Set Copyright year dynamically with
${today.year}
Add copyright regex (Acquired by selecting the copyright header in intellij editor and pressing
ctrl shift f)Allow replacing old copyright identified by regex seems not to work

Adjust copyright formatting settings
Open Settings/Editor/Copyright/Formatting
Change to
Use block commentswithPrefix each line, setRelative LocationtoBefore other commentsand increaseSeparator before/after Lengthto81
Delete previous copyright header manually (Replace with empty String)
Right click package and choose
Update Copyright..Check files for duplicated copyright header (occurs if copyright regex not set correctly)