Mahmoud Habib
07/02/2025, 8:25 PMcomp
,WC
, WR
I tried playing aroud with the settings and changed the applicable contex from
Compose > Kotlin > class, Expression, object declaration, ...
To also include
Kotlin > class, Expression, object declaration, ...
and it worked for meMahmoud Habib
07/02/2025, 8:45 PMprev
shorcut.
I failed because it adds the dependency for androidx preview
@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
@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