linuxunixsublimetext2

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.


Solution

  • 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