【问题标题】:PhpStorm how to change the signature in all files inside a directoryPhpStorm 如何更改目录内所有文件的签名
【发布时间】:2018-08-15 01:37:46
【问题描述】:

我想知道是否可以使用 PhpStorm 为目录中的所有文件更改像这个示例一样的标头签名。

/*
 * myfile.php
 * @copyright year 
 * ...
*/

【问题讨论】:

  • 也许版权插件可以做到这一点(它是捆绑的),但我从未使用过它,所以不确定。除此之外——使用正则表达式在路径中查找和替换。

标签: phpstorm phpstorm-2018.1


【解决方案1】:

版权插件当然可以做到这一点,但您必须为需要更新的目录定义自定义范围。在https://www.jetbrains.com/help/phpstorm/generating-and-updating-copyright-notice.htmlhttps://blog.jetbrains.com/phpstorm/2016/01/managing-copyright-notices-in-phpstorm/ 上查找更多信息。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-01-30
    • 2020-12-26
    • 2021-04-07
    • 2022-09-28
    • 1970-01-01
    • 2011-12-01
    • 1970-01-01
    • 2018-08-21
    相关资源
    最近更新 更多