简体   繁体   中英

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...

Sublime is gonna open a new panel at the bottom, you just need to fill the fields. Inside the field Where, you can, for example, look up only for .txt files:

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. I will definitely submit a feature request.

  • Install the SideBarEnhancements plugin
  • Select the folder from side bar
  • Right click and open the context menu
  • From Find Advanced -> Mass Rename Selection... you can do this.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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