Sublime Forum

Find and replace current file name?

#1

Hi,

I currently have 50 php files open in sublime and Im wanting to do a find and replace across all 50 files for the same phrase and replace with the current file name.

So for example it would be find: name.php

Replace name.php with: currentopenfile.php

Obviously each instance of currentopenfile.php would be unique.

There might be a package that does this, im not sure.

Thanks

0 Likes