Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default formatter not being set #1041

Open
1 of 4 tasks
mxcury opened this issue Jul 13, 2024 · 0 comments
Open
1 of 4 tasks

Default formatter not being set #1041

mxcury opened this issue Jul 13, 2024 · 0 comments

Comments

@mxcury
Copy link

mxcury commented Jul 13, 2024

Describe the bug

I have installed the Prettier for formatting my html, css, ... but I would like to use the Redhat YAML extension for formatting .yaml files however, when I attempt to select this extension as the default formatter I still get a warning that there is no default formatter for .yaml files.

It makes the change in the settings.json but it is not reflected in the editor window itself.

	"[yaml]": {
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},

-->

Expected Behavior

It should display in the editor window that there is a configured default formatter for .yaml files

Current Behavior

I receive the warning in the status bar that: "There are multiple formatters for 'YAML' file. One of them should be configured as the default formatter
Screenshot 2024-07-13 at 12 22 05

Steps to Reproduce

  1. Install both the Prettier and YAML extension
  2. Create a new .yaml file in an empty directory, containing the following schema
name: John Doe
age: 30
is_student: false
courses:
- Mathematics
  - Physics
  - Computer Science
address:
  street: 123 Main St
  city: Anytown
  state: CA
  postal_code: 12345
  1. Attempt to set the default formatter to YAML and observe the change the settings.json

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant