cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Fiori Tools XML Annotation Server XML Formatting

former_member13323
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

maryana_naboka
Active Participant

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

Answers (1)

Answers (1)

maryana_naboka
Active Participant
0 Kudos

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