redhat-developer / redhat-developer/vscode-xml
xml.format.maxLineWidth shouldn't have a default
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 328
- Forks
- 101
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 7
Description
Hello everyone,
First of all I want to thank the contributors for this plugin. It's very helpful with regards to working with XML.
My change request for you to consider is changing the xml.format.maxLineWidth default value of 100 and changing it to no limititation.
My reason is that the current default behavior will insert newline characters that are not in the original data.
Considering this data:

And after the formatting:

If the value of that tag is shown inside of something like Microsoft Word:

The formatting has changed the actual content of the tag.
I hope you consider using defaults that do not change the data or insert hard line breaks.
Thank you for your time,
Johannes Esseling
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the xml.format.maxLineWidth setting and the formatter code that supplies its default; the issue does not name files or tests. Done means the default no longer inserts hard line breaks that change XML content, with formatter behavior covered by the repository's existing checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100