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

Format Selection not using xo #66

Closed
mamachanko opened this issue Mar 24, 2019 · 2 comments
Closed

Format Selection not using xo #66

mamachanko opened this issue Mar 24, 2019 · 2 comments

Comments

@mamachanko
Copy link

mamachanko commented Mar 24, 2019

Big thanks for the plugin!

I have configured it like so:

{
  // ...
  "xo.enable": true,
  "xo.format.enable": true
}

When I Format Document the whole document gets formatted complying with my xo config. However, when I Format Selection then it gets formatted according according VS Code defaults.

@lxghtless
Copy link

Try something like this in your settings.json?

{
	"xo.enable": true,
	"xo.format.enable": true,
	"[json]": {
		"editor.formatOnSave": true,
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},
	"[typescript]": {
		"editor.formatOnSave": true,
		"editor.defaultFormatter": "samverschueren.linter-xo"
	}
}

@yakov116
Copy link

yakov116 commented Aug 3, 2021

Looks like your settings are not correct.

Issue can be closed

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

4 participants