on 02-27-2023 12:56 AM
Hi there,
Is there a way to preserve line breaks for attributes in the SAP Fiori Tools XML Annotation Server XML Formatting?
Currently, it's changing this
<mvc:View displayBlock="true"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m"
xmlns:cc="com.myorg.myapp.control"
controllerName="com.myorg.myapp.controller.IncidenceDetail">
<Page id="incidenceDetailPage"
title="{incidenceHistory>name}"
showNavButton="true"
navButtonPress=".onNavBack">
</Page>
</mvc:View>
to this
<mvc:View displayBlock="true" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" xmlns:cc="com.myorg.myapp.control" controllerName="com.myorg.myapp.controller.IncidenceDetail">
<Page id="incidenceDetailPage" title="{incidenceHistory>name}" showNavButton="true" navButtonPress=".onNavBack" />
</mvc:View>
FYI, using other XML tools VS Code extensions, we have the following options:
Thanks.
sammok83
Thanks for bringing this up. SAP Fiori Tools - XML annotation LSP extension is not supposed to format the xml view files. We will exclude formatting of non-annotation or metadata files from this extension so you could use other extensions for this purpose.
If you want to have formatting capabilities in UI5 Language Assistant extension which is also part of SAP Fiori Tools, feel free to request an enhancement here: https://github.com/SAP/ui5-language-assistant/issues
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sammok83
formatting capabilities are now implemented and the release to the SAP Business Application Studio and VSC Marketplace is expected in around a week.
You can try it out before the official release by installing the new extension version v4.0.13 from GitHub.
Hope this meets your needs.
Best Regards
Mariana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.