IntelliJ 添加了太多的版权标头
我将 IntelliJ 设置为在源代码中包含许可证作为标题中的注释。由于某种原因,IntelliJ 在所有文件中重复了几个版权声明。
因此,目前所有文件都有一到五个(或更多)重复的许可证标头,例如:
/*
* Copyright [2014] [John Doe]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Copyright [2014] [John Doe]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
如何删除同一标题的多次重复?
我找不到再次删除标题的功能。IntelliJ 是否提供这样的功能?我应该使用 Linux 板工具并替换 tne 字符串吗?我怎样才能安全地做到这一点?