IntelliJ: SPDX Copyright template
SPDX-License-Identifier: Apache-2.0
Copyright $originalComment.match("Copyright (\d+(, \d+|-\d+)*)", 1, ", ", "$today.year")$today.year REPLACE_WITH_YOUR_NAME
Will look like:
// SPDX-License-Identifier: Apache-2.0
// Copyright 2014-2016, 2022, 2023 REPLACE_WITH_YOUR_NAME
Get the license identifier from https://spdx.org/licenses/.
Change to Use line comment
in File | Settings | Editor | Copyright | Formatting
.
Regexp to detect copyright: Copyright