Hello all, So, in a kotlin multiplatform projects,...
# android
m
Hello all, So, in a kotlin multiplatform projects, I can't use compose live templates. like
comp
,
WC
,
WR
I tried playing aroud with the settings and changed the applicable contex from
Copy code
Compose > Kotlin > class, Expression, object declaration, ...
To also include
Copy code
Kotlin > class, Expression, object declaration, ...
and it worked for me
But when I tried to do the same for the
prev
shorcut. I failed because it adds the dependency for androidx preview
Copy code
@androidx.compose.ui.tooling.preview.Preview
@androidx.compose.runtime.Composable
private fun $NAME$() {
$END$
}
I thought of creating my own group and named it ComposeMultiplatformPreview, then I added a new template for
prev
with the jetbrains Preview path
Copy code
@org.jetbrains.compose.ui.tooling.preview.Preview
@androidx.compose.runtime.Composable
private fun $NAME$() {
$END$
}
this worked but it is being used everywhere even in android only projects. I know that i can change the abbrevation to something else but isn't there a solution for that? I'm so used to using these templates