In Copyright text how to modify only the year every time and retain certain existing lines that will be different for every file.
1. In Copyright text how to modify only the year every time whenever the file is altered. The last line i.e.., the Description:<file_description> that will be different for every file has to be retained, without any modification.
Example: This is our Copyright text for existing files. The year 2023 must be modified every time the corresponding file is modified. The last line ‘Description: This is the file description, will be different across every file’ should not be affected. Different files have its own description. (In the format: Description: <file_description>)
/**
* Copyright (C) 2023 Company, Inc.
* All rights reserved.
* The information in this software is subject to change without notice and
* should not be construed as a commitment by Company, Inc.
*
* Company Proprietary
* The Proprietary Information provided herein is proprietary to Company and
* must be protected from further distribution and use. Disclosure to others,
* use or copying without express written authorization of Company, is strictly
* prohibited.
*
* Description: This is the file description, will be different across every file
*/
2. In case of new file creation, the above Copyright text has to be inserted, except the last line as `Description: <FILE_NAME>` by default. This will be modified by the developer.
请先登录再写评论。
https://www.jetbrains.com/help/idea/copyright-profiles.html Was my reference
If there is certain section which is supposed to be different in every file in copyright body, personally I would prefer removing that section from the template and leave it to each concerned team member to manually add it as it would be different for everyone anyway.