I want to replace all the \"four spaces\" that is written by another text edit
You could add easy key binding:
Preference > Key binding - user :
[ { "keys": ["super+l"], "command": "reindent"}, ]
Now select the line or file and hit: command + l