blob: af88d553939cd8f3b5190d2dd46778b0ee8af302 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<templateSet group="AndroidCompose">
<template name="W" description="Surround with widget"
value="$WIDGET$ {&#10; $SELECTION$$END$ &#10; }"
toReformat="true" toShortenFQNames="true">
<variable name="WIDGET" expression="" defaultValue="&quot;androidx.compose.foundation.layout.Box&quot;" alwaysStopAt="true"/>
<context>
<option name="COMPOSE_KOTLIN" value="true"/>
<option name="COMPOSE_KOTLIN_COMMENT" value="false"/>
</context>
</template>
<template name="WR" description="Surround with Row"
value="$WIDGET$ {&#10; $SELECTION$$END$ &#10; }"
toReformat="true" toShortenFQNames="true">
<variable name="WIDGET" expression="&quot;androidx.compose.foundation.layout.Row&quot;"/>
<context>
<option name="COMPOSE_KOTLIN" value="true"/>
<option name="COMPOSE_KOTLIN_COMMENT" value="false"/>
</context>
</template>
<template name="WC" description="Surround with Column"
value="$WIDGET$ {&#10; $SELECTION$$END$ &#10; }"
toReformat="true" toShortenFQNames="true">
<variable name="WIDGET" expression="&quot;androidx.compose.foundation.layout.Column&quot;"/>
<context>
<option name="COMPOSE_KOTLIN" value="true"/>
<option name="COMPOSE_KOTLIN_COMMENT" value="false"/>
</context>
</template>
<template name="comp"
value="@androidx.compose.runtime.Composable&#10;fun $NAME$(modifier: androidx.compose.ui.Modifier = androidx.compose.ui.Modifier) {&#10;$END$&#10;}"
description="Create @Composable function"
toReformat="true"
toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true"/>
<context>
<option name="COMPOSE_KOTLIN" value="true"/>
<option name="COMPOSE_KOTLIN_COMMENT" value="false"/>
</context>
</template>
<!-- region Modifiers -->
<template name="paddp"
value="androidx.compose.ui.Modifier.padding($DP$.dp)"
description="Add padding Modifier in dp"
toReformat="true"
toShortenFQNames="true">
<variable name="DP" expression="" defaultValue="" alwaysStopAt="true"/>
<context>
<option name="COMPOSE_KOTLIN_EXPRESSION" value="true"/>
</context>
</template>
<template name="weight"
value="androidx.compose.ui.Modifier.weight($WEIGHT$)"
description="Add weight Modifier"
toReformat="true"
toShortenFQNames="true">
<variable name="WEIGHT" expression="" defaultValue="" alwaysStopAt="true"/>
<context>
<option name="COMPOSE_KOTLIN_EXPRESSION" value="true"/>
</context>
</template>
<!-- endregion -->
</templateSet>