最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

PhpStorm

旗下网站admin3浏览0评论

PhpStorm

PhpStorm

PhpStorm - 更改图像的路径 - 如何使用批处理更新所有路径(PhpStorm - change the path to images - how to update all paths with a batch process)

我想改变我在我的网站上的图像的路径,但有数百个要改变。

这有批处理吗?

I want to change the path to images I have on my site however there are hundreds to change.

Is there a batch process for this?

最满意答案

您应该尝试最明显的方法:全局查找和替换。

Edit | Find | Replace in Path... Edit | Find | Replace in Path... (使用默认键盘映射的Ctrl + Shift + R )。

搜索功能允许您指定非常狭窄的搜索范围 - 仅指定特定文件夹..或用户定义的自定义范围,您可以在每个文件级别上包含该范围。

如果find发现太多可能的事件(搜索范围太广 - 例如文件夹名称不是太独特等),您仍然可以在执行实际替换部分之前查看并排除特定事件。

You should try the most obvious approach: global find & replace.

Edit | Find | Replace in Path... (Ctrl + Shift + R using Default keymap).

Search functionality allows you to specify the very narrow search scope -- only specific folder .. or user-defined custom scope where you can include on per-file level.

If find finds too many possible occurrences (search is too broad -- e.g. folder name is not too unique etc) you can still review and exclude particular occurrences before doing actual replace part.

发布评论

评论列表(0)

  1. 暂无评论