Reputation: 133
I want to create a macro in sublime text 3, to do:
Replace all beginnig of the line with ' Replace all beginnig of the end with ',
I recorded the macro doing this with cntl H and making the replaces, then save the macro but when I want to execute it don't do it.
Is there any other way to record macros for replaces?
Example:
Before:
12313
12313
12313
12313
12313
12313
12313
12313
12313
12313
12313
12313
12313
12313
12313
12313
12313
12313
12313
After:
'12313', '12313', '12313', '12313', '12313', '12313', '12313', '12313', '12313', '12313', '12313', '12313', '12313', '12313', '12313', '12313', '12313', '12313', '12313'
Thanks Regards
Upvotes: 1
Views: 1349
Reputation: 6016
You can do it using this actions (which you can record and save in a macro):
You can also probablly do it using regex and snippets but macros are also a good way.
Upvotes: 1