Single quotes are being replaced with double quotes in vs code

Sami C.
1 min readSep 7, 2019

--

A simple fix:

  1. Install prettier plugin: https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
  2. add a .prettierrc.js file at the top level of your project

add the following snippet in the prettierrc file:

module.exports = {    singleQuote: true};

That’s all!

Reopen a .vue file and reformat. The formatter should no longer change the single quotes in double quotes!

Happy formatting!

--

--

Sami C.
Sami C.

Written by Sami C.

Freelance Software Engineer

Responses (3)