Giter VIP home page Giter VIP logo

Comments (4)

luisespinal avatar luisespinal commented on August 25, 2024 3

It's 2019. Any news on this? I'm about to abandon VS Code since this is actually a big problem. It renders large ANT builds and Maven poms unreadable when the formatter nukes the empty lines that make them readable.

from vscode-xml.

DotJoshJohnson avatar DotJoshJohnson commented on August 25, 2024

After some testing, this may need to wait until the formatter is redesigned. Currently, it is a mess of RegEx matches and it is proving difficult to keep whitespace outside of a CDATA tag as we need to determine what is "important" white-space and what is extraneous.

I'm pushing this off the hotplate for now as I'm working on a v2.x rewrite. I will take this issue into consideration when writing the new/updated formatter.

from vscode-xml.

DotJoshJohnson avatar DotJoshJohnson commented on August 25, 2024

Released in v2.0.0-preview.1. This will be released to the marketplace when v2.0.0 is out of preview.

from vscode-xml.

Skuriles avatar Skuriles commented on August 25, 2024

Hey,
I've just tested the preview 2.0 and now it looks like that there are new lines added everywhere:

<OPTION id="aircondition" name="aircondition" variable="opt_aircondition" active="0" />
<OPTION id="environmentsensor" name="environmentsensor" variable="opt_environmentsensor" active="0" />

becomes to

<OPTION id="aircondition" name="aircondition" variable="opt_aircondition" active="0" />	

<OPTION id="environmentsensor" name="environmentsensor" variable="opt_environmentsensor" active="0" />

I don't want additional linebreaks, just keep the ones we added before

from vscode-xml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.