简体   繁体   English

在PhpStorm中移动目录时如何更改文件路径

[英]How to change the path in files when moving a directory in the PhpStorm

In PhpStorm there is a function, when you re-create a file, it is renamed in the entire project. 在PhpStorm中有一个功能,当您重新创建文件时,它将在整个项目中重命名。 Neither can I find out if there is a function so that when transferring one folder to another. 我也无法找出是否有一个功能,以便在将一个文件夹转移到另一个文件夹时使用。

For example: 例如:

  • in the /abc/def/ghi/ structure /abc/def/ghi/结构中
  • you need to move /ghi/ directly under /abc/ 您需要将/ghi/直接移至/abc/
  • and that in the files where the mention of /abc/def/ghi/ will became /abc/ghi/ 并且文件中提到/abc/def/ghi/将变成/abc/ghi/

The functional as in renaming interests. 重命名中的功能。 About the mass replacement through Ctrl + Shift + R I know, but then you must first move the folder, then look for files where something is wrong, but I want it to be more automated and do it all myself. 关于通过Ctrl + Shift + R进行批量替换,我知道,但是随后您必须首先移动文件夹,然后查找出现问题的文件,但是我希望它可以更自动化并自己完成。

The answer is, it works just like this, I just installed the old version, updated it, everything works as I wanted out of the box, there's nothing to think about. 答案是,它就像这样工作,我刚刚安装了旧版本,对其进行了更新,一切都按照我想要的方式工作了,没有什么可考虑的。

Was PhpStorm 7 是PhpStorm 7

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

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