简体   繁体   English

查找并替换文件夹中的所有文件名 - PHPStorm / WebStorm

[英]Find and Replace All File Names in Folder - PHPStorm / WebStorm

Let's say I have the following directory structure: 假设我有以下目录结构:

-Root
    -some_file.php
    -other_file.php
    -third_file.php

How do I replace every instance of file in the above file names? 如何替换上述文件名中的每个file实例?

PhpStorm does not cover this task. PhpStorm不承保这项任务。 You can only rename single file one by one or use custom shell script. 您只能逐个重命名单个文件或使用自定义shell脚本。

I just googled the same thing and ended up using Total Commander to multi-rename a few hundred files and then PHPStorm > Replace in Path to replace all the references. 我只是谷歌搜索同样的东西,最后使用Total Commander多重命名几百个文件,然后PHPStorm>替换路径替换所有的参考。 The entire process took 5 minutes. 整个过程耗时5分钟。

I used Renamer which worked pretty well https://www.den4b.com/products/renamer 我使用了Renamer,效果很好https://www.den4b.com/products/renamer

It didn't rename folders though, so that would be an improvement I would like to see. 它没有重命名文件夹,所以这将是我希望看到的改进。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM