| <?xml version="1.0" encoding="UTF-8"?> |
| <templateSet group="AndroidCompose"> |
| <template name="W" description="Surround with widget" |
| value="$WIDGET$ { $SELECTION$$END$ }" |
| toReformat="true" toShortenFQNames="true"> |
| <variable name="WIDGET" expression="" defaultValue=""androidx.compose.foundation.layout.Box"" 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$ { $SELECTION$$END$ }" |
| toReformat="true" toShortenFQNames="true"> |
| <variable name="WIDGET" expression=""androidx.compose.foundation.layout.Row""/> |
| <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$ { $SELECTION$$END$ }" |
| toReformat="true" toShortenFQNames="true"> |
| <variable name="WIDGET" expression=""androidx.compose.foundation.layout.Column""/> |
| <context> |
| <option name="COMPOSE_KOTLIN" value="true"/> |
| <option name="COMPOSE_KOTLIN_COMMENT" value="false"/> |
| </context> |
| </template> |
| <template name="comp" |
| value="@androidx.compose.runtime.Composable fun $NAME$(modifier: androidx.compose.ui.Modifier = androidx.compose.ui.Modifier) { $END$ }" |
| 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> |
| |