Comments (5)
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.
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.
See #122 for consideration of respecting VS Tag Wrapping settings as a potential default.
from xamlstyler.
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.
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)
- Unexpected results with <elements> in text HOT 3
- Unhandled FileNotFoundException when specifying an invalid file in XAML console
- Styles doesn't break line with a long binding expression - Styler should break lines when there are binding parameters
- Add option to list failures when running in Passive mode HOT 1
- Suggestion: Central package versioning HOT 1
- Visual Studio reports vulnerability in nuget reference HOT 3
- The package 'StylerPackage' did not load correctly HOT 4
- [Bug Report] Error when formatting project file HOT 1
- Incompatible with Rider EAP HOT 7
- Error to edit .csproj files on VS 17.9.0 HOT 5
- The description and the title of the Addin is incorrect
- TODO: Release XamlStyler 3.2401 HOT 5
- Generate JSON Schema for config file HOT 1
- When adding a Propertygroup to a project XAML, an error in StylerPackage appears HOT 3
- DataGrid Header HOT 3
- No such interface supported HOT 1
- New releases blocked on release build extension deployment bug and VS debugging HOT 7
- Final feature update and deprecate support for Visual Studio 2017
- Update Newtonsoft.Json package to version 12.0.2 HOT 3
- Files with UTF-16 encoding fail when running xstyler on Ubuntu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamlstyler.