[英]In Sublime Text, how do I find and replace the file name
Is there a way in sublime text where I can find a pattern and replace it with file names.有没有办法在崇高的文本中找到一个模式并将其替换为文件名。
For example, I have a bunch of file names that contain people.例如,我有一堆包含人的文件名。
I want to replace that with person.我想用人来代替它。
在SideBarEnhancements
,在Find Advanced
下有一个Mass Rename Selection...
选项,可以批量重命名多个文件。
Menu: Find -> Find in Files...
菜单:
Find -> Find in Files...
Sublime is gonna open a new panel at the bottom, you just need to fill the fields. Sublime 会在底部打开一个新面板,你只需要填写字段。 Inside the field Where, you can, for example, look up only for .txt files:
例如,在 Where 字段中,您可以仅查找 .txt 文件:
Find: People
Where: C:\Temp, *.txt
Replace: Person
No you cannot do a find and replace on a filename.不,您不能对文件名进行查找和替换。 Although there is a great package called SideBarEnhancements which would benefit from this feature.
虽然有一个很棒的包叫做 SideBarEnhancements 可以从这个功能中受益。 I will definitely submit a feature request.
我肯定会提交功能请求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.