Is there a way to enable Live Edit for previews or...
# compose-desktop
m
Is there a way to enable Live Edit for previews or is that Android only? I'd be content with refreshing the preview on save (Ctrl+S), because currently I have to click the little ✏️ gutter icon next to the preview after every change. There is an option in settings to enable it but it does nothing, so I'm guessing it's an Android-specific option.
m
The icon in the gutter says there is a keyboard shortcut : Ctrl + Shift + F10, but that doesn't seem to work for me. Only clicking the ✏️ icon works. (using Android Studio on a compose multiplatform module that is shared between Android and JVM)
m
You are right, I never noticed the shortcut tooltip. But it also doesn't work for me, in Idea.
r
The shortcut only brings up the preview window and doesn't actually refresh it. What will be more helpful would be a shortcut to force refresh the UI. I sometimes drag my preview onto a different monitor to have more visibility as things change but yeah u always have to click the gutter icon to make it re-render, which is very inconvenient if you're working with a screen composed from different files. Are there any works in progress for something like this? @Chris Sinco [G]
c
That Preview feature is owned by JetBrains and is Compose Multiplatform. The Preview in Android Studio is only for Android at this time.
m
Not perfect, but I can live with a few extra clicks to preview, far less painful than rewriting the UI