Comments (5)
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.
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.
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.
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.
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)
- Is it possible to prevent formatting of short lines - regardless of number of attributes? HOT 2
- Markup extensions not keep on line HOT 1
- Markup extension formatting no longer works HOT 2
- Add support for Rider 2023.2 HOT 7
- Position Setter each attribute on a separate line HOT 2
- XamlStyler moves <!--#endregion--> wrongly HOT 5
- Unit tests are broken on Unix HOT 1
- Console: Add option to write formatted output to stdout instead of modifying the file HOT 1
- Yasin
- Yasin
- Extension will not alphabetize HOT 4
- XamlStyler.Console doesn't read axaml files when searching recursively
- can not run in linux while dotnet-sdk 7/8 installed HOT 1
- XAML Styler firing for Project files (*.csproj) also after updating to v3.2311.2. Previously, it was working fine. HOT 8
- Error in StylerPackage (regarding &) HOT 1
- "Max attribute characters per line" is not respected even when "Attribute Tolerance"=5 and "Max attributes per line"=8 HOT 5
- Rider 2023.3 support
- 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
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.