redhat-developer / redhat-developer/vscode-xml

xml.format.maxLineWidth shouldn't have a default

Open
#884 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

formatting
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:
grafik

And after the formatting:
grafik

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

grafik

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.