I don't have prettier extension installed, but after reading the possible duplicate answer I've added from scratch in my User Setting (UserSetting.json, Ctrl+, shortcut):

"prettier.singleQuote": true

A part a green warning (Unknown configuration setting) the single quotes are no more replaced.

I suspect that the prettier extension is not visible but is embedded inside the Vetur extension.

Answer from attdona on Stack Overflow
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 1099
Prettier "prettier.singleQuote" not working in 1.40 vs code · Issue #1099 · prettier/prettier-vscode
November 26, 2019 - Expected result: File should format with "singleQuotes" File is formatted with double quotes · VS Code Version: Version: 1.40.1 (user setup) Commit: 8795a9889db74563ddd43eb0a897a2384129a619 Date: 2019-11-13T16:49:35.976Z Electron: 6.1.2 Chrome: 76.0.3809.146 Node.js: 12.4.0 V8: 7.6.303.31-electron.0 OS: Windows_NT x64 6.1.7601 · OS and version: Windows 7 Enterprise Version 6.1(Build 7601: Service Pack 1) [INFO - 10:09:39 AM] Extension Name: "prettier-vscode".
Author   sreekumarp
Discussions

Single quotes are sometimes replaced with double quotes even when "prettier.singleQuote: true" is specified
I am using the vscode extension and am having an issue with the prettier.singleQuote setting. The only settings I have customized are: "prettier.singleQuote": true, "prettier.trailingComma": "all", "prettier.printWidth": 100 · Specifically, when prettier is run on a string like this: ... The expected behavior (I think) is to continue using single quotes since the setting prohibits the use of double quotes. My temporary workaround ... More on github.com
🌐 github.com
11
June 28, 2017
Help! VS Code Broke My Code Formatting
Latest version of the extension deprecates the global settings. Add a prettier config file to your project. More on reddit.com
🌐 r/vscode
2
4
November 19, 2019
"prettier.singleQuote: true" not being honored for vanilla javascript files
I am having an issue getting the vscode prettier extension to convert my javascript documents correctly. I am running VSCode 1.22.2 with version 1.3.1 of the Prettier extension. I have a prettier c... More on github.com
🌐 github.com
5
April 26, 2018
singleQuote config is not respected
I always get my code with double quotes, even when I have set. More on github.com
🌐 github.com
28
August 30, 2017
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 1085
cannot format doubleQuotes to singleQuote in single javascript file · Issue #1085 · prettier/prettier-vscode
November 21, 2019 - prettier / prettier-vscode Public · There was an error while loading. Please reload this page. Notifications · You must be signed in to change notification settings · Fork 509 · Star 5.5k · New issueCopy link · New issueCopy link · Closed · Closed · cannot format doubleQuotes to singleQuote in single javascript file#1085 ·
Author   Fenglinwanyue
🌐
GitHub
github.com › prettier › prettier › issues › 2338
Single quotes are sometimes replaced with double quotes even when "prettier.singleQuote: true" is specified · Issue #2338 · prettier/prettier
June 28, 2017 - I am using the vscode extension and am having an issue with the prettier.singleQuote setting. The only settings I have customized are: "prettier.singleQuote": true, "prettier.trailingComma": "all", "prettier.printWidth": 100 · Specifically, when prettier is run on a string like this: ... The expected behavior (I think) is to continue using single quotes since the setting prohibits the use of double quotes. My temporary workaround is to change the string to:
Author   alexjlockwood
🌐
Medium
medium.com › @nayan.vekariya014 › prettier-in-vs-code-how-to-avoid-quote-wars-and-keep-your-team-sane-d622de5c7f29
🔧 Prettier in VS Code: How to Avoid Quote Wars and Keep Your Team Sane | by Nayan Vekariya | Medium
July 18, 2025 - If there’s no Prettier config in your project, VS Code falls back to your global or extension settings. So if your global Prettier setup uses singleQuote: true, VS Code will replace "double quotes" with 'single quotes', even if the original project uses double quotes.
🌐
Reddit
reddit.com › r/vscode › help! vs code broke my code formatting
r/vscode on Reddit: Help! VS Code Broke My Code Formatting
November 19, 2019 -

I'm really not sure what to do, but this is pissing me off greatly. I'm using VS Code with my Angular projects at work, and had things set to use single quotes and no semi-colons. Now, after closing the editor, and re-opening it, with my project, it's changing my code files on save to double quotes and adding semi-colons. I'm using Prettier to handle the formatting as well. This has been untouched for over a year, and now it decides to start screwing with my formatting. My settings.json is below:

{
    "editor.fontFamily": "Fira Code",
    "editor.fontLigatures": true,
    "editor.formatOnSave": true,
    "editor.formatOnSaveTimeout": 1000,
    "editor.tabSize": 2,
    "files.trimTrailingWhitespace": true,
    "git.autofetch": true,
    "prettier.jsxBracketSameLine": true,
    "prettier.printWidth": 120,
    "prettier.semi": false,
    "prettier.singleQuote": true,
    "typescript.preferences.quoteStyle": "single",
    "workbench.colorTheme": "Material Theme Palenight High Contrast"
}

Can anyone help get this working again? Thanks.

Update: I've determined that the issue is with the Prettier extension [v3.8.0]. I tried disabling the extension initially, and formatting was still not working correctly. I then decided to try installing the previous version [v3.7.0] (it's possible it got updated when I restarted the editor), and it started working again. I did notice in the output window, with Prettier selected, most of my settings were missing in v3.8.0. In version 3.7.0, the output when formatting looks like this:

[INFO - 9:36:18 AM] Formatting <Redacted>.component.spec.ts.
[INFO - 9:36:18 AM] Using bundled version of prettier.
[INFO - 9:36:18 AM] Resolved ignore file to <redacted>\.prettierignore.
[INFO - 9:36:18 AM] File Info:
{
  "ignored": false,
  "inferredParser": "typescript"
}
[INFO - 9:36:18 AM] Prettier Options:
{
  "arrowParens": "avoid",
  "bracketSpacing": true,
  "endOfLine": "auto",
  "htmlWhitespaceSensitivity": "css",
  "insertPragma": false,
  "jsxBracketSameLine": true,
  "jsxSingleQuote": false,
  "printWidth": 120,
  "proseWrap": "preserve",
  "quoteProps": "as-needed",
  "requirePragma": false,
  "semi": false,
  "singleQuote": true,
  "tabWidth": 2,
  "trailingComma": "none",
  "useTabs": false,
  "vueIndentScriptAndStyle": false,
  "filepath": "<redacted>.component.spec.ts",
  "parser": "typescript"
}
[INFO - 9:36:18 AM] Formatting completed in 28.423ms.

In version 3.8.0, the output when formatting shows this:

[INFO - 9:39:45 AM] Formatting <redacted>.component.spec.ts.
[INFO - 9:39:45 AM] Using bundled version of prettier.
[INFO - 9:39:45 AM] Resolved ignore file to <redacted>\.prettierignore.
[INFO - 9:39:45 AM] File Info:
{
  "ignored": false,
  "inferredParser": "typescript"
}
[INFO - 9:39:45 AM] Prettier Options:
{
  "filepath": "<redacted>.component.spec.ts",
  "parser": "typescript",
  "useTabs": false,
  "tabWidth": 2
}
[INFO - 9:39:45 AM] Formatting completed in 21.654699ms.

Update 2: It looks like both version 3.7.0 and 3.8.0 were released on the same day, one right after the other. Version 3.7.0 works correctly, while version 3.8.0 does not.

Find elsewhere
🌐
Medium
pjausovec.medium.com › prettier-single-quote-setting-not-respected-in-tsx-files-vs-code-8d34a9554b37
Prettier single quote setting not respected in .tsx files (VS Code) | by Peter Jausovec | Medium
March 7, 2021 - And, of course, the default value for that is false. The solution is to set the jsxSingleQuote setting to true as well. This will change all double quotes in your .tsx files to single quote.
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 206
singleQuote config is not respected · Issue #206 · prettier/prettier-vscode
August 30, 2017 - bugSomething isn't workingSomething isn't workinglockedLocked due to inactivityLocked due to inactivity ... I always get my code with double quotes, even when I have set.
Author   capaj
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 1060
"singleQuote": true , but still it's not working, exchanges always to double qoutes · Issue #1060 · prettier/prettier-vscode
November 15, 2019 - prettier / prettier-vscode Public · There was an error while loading. Please reload this page. Notifications · You must be signed in to change notification settings · Fork 473 · Star 5.3k · New issueCopy link · New issueCopy link · Closed · Closed · "singleQuote": true , but still it's not working, exchanges always to double qoutes#1060 ·
Published   Nov 15, 2019
🌐
Reddit
reddit.com › r/vscode › vs code keeps changing my single quotes to double quotes, probably because of vetur extension but i've tried all the posted solutions already. nothing seems to be working
r/vscode on Reddit: VS code keeps changing my single quotes to double quotes, probably because of vetur extension but I've tried all the posted solutions already. Nothing seems to be working
July 25, 2020 -

I'm working with vue, but this keeps happening to all my .vue files. I have the vetur extension + prettier + eslint. Eslint fixes the double quotes to single quotes but I think either prettier or vetur is overwriting it. I may be missing one of the webpack files but I have no idea which one, or if I actually AM missing a file.

I've tried to add:

{
    "vetur.format.defaultFormatter.js": "prettier-eslint", 
    "eslint.validate": [ 
        { "language": "vue", "autoFix": true }, 
        { "language": "javascript", "autoFix": true } ], 
    "eslint.autoFixOnSave": true 
}

in a .prettierrc file as suggested by one of the solutions I found but it doesn't work for me. Idek what else to do, I'm pretty new to vue.

🌐
GitHub
github.com › prettier › prettier-vscode › issues › 187
Quote rules responding unexpectedly on auto save. (Single and double quotes) · Issue #187 · prettier/prettier-vscode
July 30, 2017 - The editor will always revert the quotes to double every time, which means I basically fix, and fight my editor every save. I looked around and saw another person also experienced this: https://stackoverflow.com/questions/45124451/prettier-doesnt-work-for-changing-double-quote-to-single-quote-in-visual-code
Author   the-simian
🌐
YouTube
youtube.com › watch
VS Code Prettier Setting: prettier.singleQuote - YouTube
Want to master VS Code? Click here: https://andrecasal.com/courses/mastery-for-vs-codeWant to upgrade web dev skills? Subscribe to the newsletter here: https...
Published   September 20, 2019
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 345
Single Quote isn't applied on save or format document/selection · Issue #345 · prettier/prettier-vscode
January 22, 2018 - The semi colon rule works fine on save or formatting document, but the single quote will not resolve. If I run prettier --write, it picks up the .prettierrc and correctly changes to single quotes. ...
Author   akrueger
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 659
prettier.singleQuote not working with vetur@0.14.2 · Issue #659 · prettier/prettier-vscode
November 27, 2018 - "prettier.singleQuote": true is not working with vertur latest version. Check vetur git history: vuejs/vetur@cf893ed so, I found that I might need to add following code to vscode settings. And it works... "vetur.format.defaultFormatterOp...
Author   Moudicat
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 3012
Single quote option set to false still produces strings with single quotes in js files · Issue #3012 · prettier/prettier-vscode
May 30, 2023 - Prettier will change the surrounding double quotes to single quotes if the string contains a double quote and no single quotes.
Published   May 30, 2023
Author   YePpHa
🌐
Medium
medium.com › @samichkhachkhi › single-quotes-are-being-replaced-with-double-quotes-in-vs-code-db8c1268ab18
Single quotes are being replaced with double quotes in vs code | by Sami C. | Medium
September 7, 2019 - 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!