This extension was made to make more powerful replaces in opened files than with native vscode command with the help of python
- Use a regex to select what you need to change
- write a one-liner to change all ocurrences inside the file
The arguments of the python function are:
- x: str
The global group of the match (equivalent to match.group())
- y: Match
The Match object
- k: int
The match count, it starts at 0 and increase by one after each replacement
You can also write as the original vscode syntax $1 for the first group $2 for the second one... instead of y[0], y[1]...
Python needs to be installed on the machine and added to the path. (I may later make settings so the user can specify the path)
W.I.P, Later defined
not for now, it just was released
The first one
Initial release of python-replace !