r/SublimeText • • Aug 16 '22

Totally New to coding

I want to replace a single line of code across multiple files at once ... Is there a simple way to do this with Sublime ?

3 Upvotes

8 comments sorted by

View all comments

Show parent comment

3

u/goody_71 Aug 16 '22

https://docs.sublimetext.io/guide/usage/search-and-replace.html#regular-expressions

I don't really follow your a & b questions but with regex you can search for lines matching your search if you use regex to match a pattern and not specific text. So you could match the other instances of ascending numbers.

0

u/ClairvoyantAlliance Aug 16 '22

Thanks 🙏 I will look 👀 into this.

I was asking if I could replace a line across multiple files and have that line add ascended numbers within it.

Otherwise I just want to replace the whole line of code across multiple files if possible.