-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve xml.format.splitAttributes settings #631
Comments
Indeed we should have this settings. @fbricon what about having |
It should be nice to have this feature, but I don't know when we will have time to implement it. |
There are really a lot of ways to format. See for instance the way Android Studio does it: <application
android:name="io.flutter.app.FlutterApplication"
android:label="MyApp"
android:usesCleartextTraffic="true"
android:icon="@mipmap/ic_launcher"> I would also argue that someone could go for <application
android:name="io.flutter.app.FlutterApplication"
android:label="MyApp"
android:usesCleartextTraffic="true"
android:icon="@mipmap/ic_launcher"
> for personal preferences like myself. So in conclusion I think we need more variables to fine-tune, something like:
(Intentionally negated the new variables to make false the default value, but this is personal preference whatsoever) Please make this happen, thanks a lot! :) |
@fbricon @JessicaJHee it could be nice if experimental formatter could provide this support. We need at first clarify all suggested settings. Thanks @martin-braun for your suggestions |
Hi.
Currently when
xml.format.splitAttributes
is set totrue
, all the attributes appear each on a new line, like this:It would be really nice to be able to leave the very first attribute on the same line as the opening tag
and all the other attributes could be aligned by the beginning of this first attribute, like this:
Like add an additional option to either leave the first attribute on the same line as the opening tag OR make each attribute appear on a separate line. And if the "leave the first attribute on the same line" is selected then its beginning should be the start of alignment for all the subsequent attributes.
I am just used to how the "XML Tools Plugin" in Notepad++ does it, so I didn't expect to see the first attribute also on a separate line.
The text was updated successfully, but these errors were encountered: