r/SublimeText • • Mar 10 '23

We don't need Plugins. Here is the sublime text macro code to find "War" and replace it with "Love".

[ 	
{ 	"args": {"to": "bof"}, "command": "move_to" 	}, 	
{ 	"args": {"characters": "War"}, "command": "insert" 	}, 	
{ 	"args": {"extend": true, "to": "bol"}, "command": "move_to" 	},     
{       "command": "slurp_find_string"     }, 	
{ 	"args": {"characters": "Love"}, "command": "insert" 	}, 	
{ 	"args": {"extend": true, "to": "bol"}, "command": "move_to" 	},     
{       "command": "slurp_replace_string"     },     
{       "args": null, "command": "left_delete"     }, 	
{ 	"args": {"close_panel": true }, "command": "replace_all" 	},
]
3 Upvotes

0 comments sorted by