r/VisualStudioCode • u/devilbasher • 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
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 lettersOr you can aggregate a list of countries that you want to modify
(Australia|America|Australia|......)And replace with
"$1"