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

xml.format.maxLineWidth should respect the .editorconfig setting, if there is one #850

Open
GrimLink opened this issue Jan 2, 2023 · 2 comments
Labels
enhancement New feature or request formatting

Comments

@GrimLink
Copy link

GrimLink commented Jan 2, 2023

No description provided.

@angelozerr
Copy link
Contributor

@GrimLink you mean that you would like to declare xml.format.maxLineWidth in.editorconfig? If it that I don't know how to do that.I wonder if HTML, JSON ,etc support coming from vscode himself support too .editorconfig?

@datho7561
Copy link
Contributor

There is a standard property name for EditorConfig for max line width, but not many editors/plugins support it: https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#supported-by-a-limited-number-of-editors

It looks like there is an npm package for reading EditorConfig files provided by the EditorConfig organization that we could use to read the setting for the file: https://www.npmjs.com/package/editorconfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request formatting
Projects
None yet
Development

No branches or pull requests

3 participants