Code Monkey home page Code Monkey logo

Comments (5)

NicoVermeir avatar NicoVermeir commented on May 27, 2024

We've reviewed this but are not really sure if this is something that people want. After asking around, I found no one that would like this style of xml formatting so I don't know if it's worth the effort of building this in but we'd like to open up a discussion about this, if other people are interested as well

from xamlstyler.

punker76 avatar punker76 commented on May 27, 2024

I have never seen this on any Xaml code. And I think this is not a good style. Any benefits?

<foo>
  <bar />
  <baz />
  <anotherfoo>
    <baz />
    </anotherfoo>         <--- this is indented
  </foo>         <--- this is indented

from xamlstyler.

JohanLarsson avatar JohanLarsson commented on May 27, 2024

This is probably not going to be commonly used, don't think I have seen it anywhere. Should be configurable via setting but not sure it is worth the effort/added complexity.

from xamlstyler.

denisz1 avatar denisz1 commented on May 27, 2024

It is called Banner style and is common in various languages. In Python it's standard.

Maybe it's not worth the effort now, but it's not a "bad idea". It keeps code readable, which is why it is used. We use it all the time, code is much cleaner and easier to read and maintain. XML is called "tag soup" for a reason, this minimises the soup.

Maybe in some future version.

from xamlstyler.

grochocki avatar grochocki commented on May 27, 2024

Fair point about possibly being more common in other languages, but it seems to be non-standard XAML styling. Because of this, I am going to close this issue as wontfix. Of course, if there is an increase in demand for this type of formatting in the future, we can always revisit the issue.

from xamlstyler.

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.