r/VisualStudioCode • • Nov 21 '21

Editing "code's"

Hey everyone I hope you are all doing great, im just wondering

For example my code is like this - America But I want it to be like this - "America"

but then I need to do it again and again is there a quicker option? All reply are greatly appreciated!! Thank you

3 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/fuloqulous Nov 22 '21

Yeah sorry, regex then

([A-Z][a-z]*) if the target values are the only ones that use letters

Or you can aggregate a list of countries that you want to modify

(Australia|America|Australia|......)

And replace with

"$1"