Preferences -> Editor -> Copyright -> Copyright Profiles 添加 copyright
Copyright (c) $today.year
User:$username
File:$file.fileName
Date:$file.lastModified.format("yyyy/MM/dd HH:mm:dd")
Preferences -> Editor -> Copyright
Default project copyright 选择新添加的 copyright
IntelliJ IDEA帮助文档: https://www.jetbrains.com/help/idea/copyright-profiles.html