(wish) Replace with each replace x=x+1
Posted: Sun Jul 16, 2017 8:57 am
When using "replace" option in Windows IDE, I notice that it is quite usual that I am replacing something where there is number included in the replacement and then it is supposed to rise by one each time.
as example i might have:
after which i copy paste this same line several times:
after which i change the real names and numbers to it:
It isnt that much trouble changing those numbers afterwards manually, but I was wondering how difficult would it be to make "replace" function in such way that you could determine that one of the things to be replaced is a number that rises by 1 after each click.
as example i might have:
Code: Select all
gfx["itemname1"] = 1
Code: Select all
gfx["itemname1"] = 1
gfx["itemname1"] = 1
gfx["itemname1"] = 1
gfx["itemname1"] = 1
gfx["itemname1"] = 1
Code: Select all
["itemname1"] = 1
gfx["itemnama"] = 2
gfx["itemnamo"] = 3
gfx["itemnameas"] = 4
gfx["itemn"] = 5