A simple fix:
- Install prettier plugin: https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
- 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!