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 - Summary Prettier "prettier.singleQuote" not working in 1.40 vs code Github Repository to Reproduce Issue Steps To Reproduce: Install VS Code 1.40.1 (user step-up) Install Prettier add-on to VS Code Set below settings in VS Code "prettier...
Author   sreekumarp
Discussions

cannot format doubleQuotes to singleQuote in single javascript file
version:3.8.0 please ignore my english,and fix this bug More on github.com
🌐 github.com
30
November 21, 2019
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

Command Palette -> "Format Document with... " - this will list the available formatters (with the default denoted) and will allow you to set the default. If you can't find the command, there's only one formatter available for this context.

More on reddit.com
🌐 r/vscode
2
6
July 25, 2020
"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 configuration set to convert double quote... More on github.com
🌐 github.com
5
April 26, 2018
Single quote option set to false still produces strings with single quotes in js files
Summary I have a string that contains double quotes. Instead of escaping those double quotes it changes the surrounding quotes to single quotes instead. However, if there's also a single quote ... More on github.com
🌐 github.com
2
May 30, 2023
🌐
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.
Author   alexjlockwood
🌐
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
🌐
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 ...
🌐
Bobby Hadz
bobbyhadz.com › blog › replace-double-quotes-with-single-in-vscode
VS Code: Replace Double quotes with Single or vice versa | bobbyhadz
April 6, 2024 - Type user settings and select Preferences: Open User Settings. You can also open the settings screen by pressing Ctrl + , on Windows and Linux or Cmd + , on macOS. Type prettier quote and check the following 2 checkboxes: ... When the Prettier: ...
🌐
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.
Find elsewhere
🌐
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 › 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
🌐
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
🌐
Medium
medium.com › @rosyidgrobogan › vscode-problems-single-to-double-quote-automatic-replace-it-92dfbdc6c1fa
VSCode Problems: Single to Double Quote automatic replace it | by Rosyid Grobogan | Medium
August 28, 2020 - Maybe for beginners a little panic, when he typed a single quote suddenly changed to double qoute automatically when using VSCode. Relax .. it’s just a matter of setting up in VSCode. Solution: We have to set up the settings, 1. Click the ‘File’ tab (which is in the upper left corner) 2. Select ‘Preferences’> ‘Settings’. You can skip 1 and 2 steps by Press ‘Ctr + Comma’ · 3. Click on search ‘“prettier.singleQuote”: true’ Then the ‘Prettier: Single Quote’ setting will appear.
🌐
KindaCode
kindacode.com › article › vs-code-js-ts-preferred-quote-type-for-quick-fixes
VS Code: Set Preferred Quote Type for Quick Fixes - KindaCode
3. Do the same thing in the “TypeScript > Preference: Quote Style” section. Choose “single” or “double” from the dropdown menu: 4. If you’re using Prettier, check/uncheck the checkboxes in the “Prettier: Jsx Single Quote” and “Prettier: Single Quote” sections.
🌐
Tomasz Tarnowski
blog.tomasztarnowski.com › automatic-code-formatting-with-visual-studio-code-and-prettier
Automatic Code Formatting with Visual Studio Code and Prettier
October 14, 2021 - Create .prettierrc file in your project root directory. ... "singleQuote", when set to true, will replace all double-quotes with single-quotes or opposite if set to false;
🌐
Medium
samiprogramming.medium.com › 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
January 17, 2020 - Install prettier plugin: ... of your project · add the following snippet in the prettierrc file: module.exports = { singleQuote: true}; That’s all!...
🌐
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.