Skip to content

Can't specify "Prettier.prettier-vscode" as the default formatter #3872

@Zamiell

Description

@Zamiell

Preflight Checklist

Issue Summary

I have the following in a "repo.code-workspace" file:

    "[css][html][markdown][postcss][yaml]": {
      "editor.defaultFormatter": "Prettier.prettier-vscode",
      "editor.formatOnSave": true,
    },

However, I get a yellow squiggly under "Prettier.prettier-vscode" which says:

Value is not accepted. Valid values: null, "ms-python.black-formatter", "vscode.css-language-features", "jkillian.custom-local-formatters", "hashicorp.hcl", "vscode.html-language-features", "vscode.json-language-features", "vscode.markdown-language-features", "vscode.markdown-math", "vscode.php-language-features", "ms-vscode.powershell", "prettier.prettier-vscode", "ms-python.python", "timonwong.shellcheck", "hashicorp.terraform", "vscode.typescript-language-features", "dbaeumer.vscode-eslint", "ms-python.vscode-pylance", "streetsidesoftware.code-spell-checker", "vscode.configuration-editing", "vscode.debug-auto-launch", "vscode.debug-server-ready", "ms-python.debugpy", "vscode.emmet", "vscode.extension-editing", "vscode.git", "vscode.git-base", "vscode.github", "vscode.github-authentication", "vscode.grunt", "vscode.gulp", "vscode.ipynb", "vscode.jake", "ms-vscode.js-debug", "ms-vscode.js-debug-companion", "vscode.media-preview", "vscode.merge-conflict", "vscode.mermaid-chat-features", "vscode.microsoft-authentication", "vscode.npm", "vscode.references-view", "emeraldwalk.RunOnSave", "vscode.search-result", "vscode.simple-browser", "vscode.terminal-suggest", "vscode.tunnel-forwarding", "vikyd.vscode-fold-level", "ms-vscode.vscode-js-profile-table", "ms-python.vscode-python-envs".(1)

I also tested on the the legacy extension - it does not have this problem.

Steps to Reproduce

Should be easily reproducible, if not I can make involved instructions.

Operating System

Windows

VS Code Version

Version: 1.106.3 (user setup) Commit: bf9252a2fb45be6893dd8870c0bf37e2e1766d61 Date: 2025-11-25T22:28:18.024Z Electron: 37.7.0 ElectronBuildId: 12781156 Chromium: 138.0.7204.251 Node.js: 22.20.0 V8: 13.8.258.32-electron.0 OS: Windows_NT x64 10.0.26100

Prettier Extension Version

12.0.6

Prettier Version

3.6.2

Prettier Extension Logs

["INFO" - 9:22:59 PM] Extension Name: prettier.prettier-vscode.
["INFO" - 9:22:59 PM] Extension Version: 12.0.6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions