Code Monkey home page Code Monkey logo

Comments (5)

grochocki avatar grochocki commented on May 23, 2024 2

While column break rules work for most languages, we do no believe they make a lot of sense for markup languages like XAML and believe there are already a number of options to help break out attributes on newlines in a way that works well.

from xamlstyler.

mikernet avatar mikernet commented on May 23, 2024 1

I just realized the only way to get attributes to wrap is if they exceed the attribute tolerance number. I don't care how many attributes are on a single line, I just care how long that line is before it triggers wrapping each attribute onto its own line.

5 short attributes might be fine, 2 long ones might be too many.

from xamlstyler.

grochocki avatar grochocki commented on May 23, 2024

See #122 for consideration of respecting VS Tag Wrapping settings as a potential default.

from xamlstyler.

mikernet avatar mikernet commented on May 23, 2024

I really think this should be reconsidered for addition. Just like code should wrap things like method parameters if it extends beyond a certain column, attributes should start to wrap at the same column width. The only thing that makes sense for me is wrapping at a total character width including indentation, not excluding it. If it fits inside my VS window width then it doesn't need to wrap, otherwise it does.

I counted no less than 5 other issues asking for the same, so this seems like a popular request. It would obviously be an optional setting, so I don't see the harm in adding it for people who want it. It seems like a relatively trivial addition.

from xamlstyler.

dvdgnz avatar dvdgnz commented on May 23, 2024

Upvote for this. I agree first line attributes should be split even if below the tolerance if they exceed a certain length. While a hard-column limit might not be desiderable, first line attributes without indentation and tag could still obey the maximum characters rule.

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.