mokie-H
mokie-H

Reputation: 15

how to replace single quotes to doubles in vs code using the search(Ctrl + Shift + F) button?

i have a Nodejs project that uses single quotes and double quotes but now I want to follow same standard(use double quotes in entire of the project). so how to replace all the single quotes to double quotes? i search them like this '(.+?)' but how to replace them?

Upvotes: 0

Views: 115

Answers (2)

Taron Qalashyan
Taron Qalashyan

Reputation: 723

The open and close quotes are the same, just search ' and replace with " .

Upvotes: 1

j3st
j3st

Reputation: 352

Click the icon on the left of the search that looks like >, then you can put in your replacement string.

As a side note, you can also simply search for ' and replace with ". Be careful when doing this - review the instances of ' first, or replace one by one.

Upvotes: 1

Related Questions