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
🌐
Prettier
prettier.io › docs › options
Options · Prettier
If the number of quotes outweighs the other quote, the quote which is less used will be used to format the string - Example: "I'm double quoted" results in "I'm double quoted" and "This \"example\" is single quoted" results in 'This "example" is single quoted'. See the strings rationale for more information. Change when properties in objects are quoted. ... Note that Prettier never unquotes numeric property names in Angular expressions, TypeScript, and Flow because the distinction between string and numeric keys is significant in these languages.
Discussions

Trying to override eslint (using prettier) to use single quotes not double
Hi, I have passed command line arguments to prettier so it is formatting the way I want using single quotes. I setup eslint as per the instructions but i can't seem to override the quotes rule, it ... More on github.com
🌐 github.com
14
June 27, 2017
Do you guys prefer single quotes or double quotes in JS and jQuery?
Does not matter. Whatever you pick, stay with it. Personally single quotes enforced via prettier. More on reddit.com
🌐 r/learnjavascript
19
8
July 9, 2021
Prettier "prettier.singleQuote" not working in 1.40 vs code
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 ... More on github.com
🌐 github.com
11
November 26, 2019
"prettier.singleQuote: true" not being honored for vanilla javascript files
I have this setting set in both visual studio's user setting in .prettierrc within my project. When I format my VueJS files, this setting is getting honored for any javascript contained in my More on github.com
🌐 github.com
5
April 26, 2018
🌐
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 - 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
🌐
Prettier
prettier.io › docs › rationale
Rationale · Prettier
Prettier chooses the one which results in the fewest number of escapes. "It's gettin' better!", not 'It\'s gettin\' better!'. In case of a tie or the string not containing any quotes, Prettier defaults to double quotes (but that can be changed via the singleQuote option).
🌐
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 - You can double-check that’s the case by looking at the Output window in VSCode and selecting “Prettier” from the dropdown on the right: ... Even though the output clearly shows the singleQuote setting is set to true, I am still seeing double quotes in my files when formatting the files.
🌐
GitHub
github.com › prettier › prettier › issues › 2280
Trying to override eslint (using prettier) to use single quotes not double · Issue #2280 · prettier/prettier
June 27, 2017 - { "extends": "prettier", "env": { "browser": true, "node": true }, "parserOptions": { "ecmaVersion": 6, "sourceType": "module" }, "plugins": [ "prettier" ], "rules": { "prettier/prettier": "error", "quotes": ["error", "single"] } }
Author   iangregsondev
Find elsewhere
🌐
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
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 427
"prettier.singleQuote: true" not being honored for vanilla javascript files · Issue #427 · prettier/prettier-vscode
April 26, 2018 - I have a prettier configuration set to convert double quotes to single quotes using the "prettier.singleQuotes": true setting.
Author   dfinton
🌐
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 - When the Prettier: Single Quote setting is enabled, single quotes are used instead of double quotes everywhere (except for JSX files).
🌐
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 › 973
Prefer escaping single quotes in strings rather than mixing quote styles. · Issue #973 · prettier/prettier
March 9, 2017 - Currently, this string ('\'editing\' flag') is automatically converted to "'editing' flag" - is there a way to prefer escaped single quotes? The value of this preference is that it promotes a consistent code style. In my opinion, there s...
Author   macbem
🌐
Azz
azz.github.io › prettier › docs › en › options.html
Options · Prettier
If the number of quotes outweighs the other quote, the quote which is less used will be used to format the string - Example: "I'm double quoted" results in "I'm double quoted" and "This \"example\" is single quoted" results in 'This "example" is single quoted'.
🌐
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.
🌐
wafrat
wafrat.com › make-prettier-and-eslint-play-well-together
Make Prettier and eslint play well together
July 5, 2022 - Hi, I have passed command line arguments to prettier so it is formatting the way I want using single quotes.