Prerequisites
For the best IDE experience, ensure you have:- IntelliJ IDEA 2025.2.2 or higher, or Android Studio Otter 2025.2.1 or higher
- Kotlin Multiplatform IDE plugin installed
Running from the IDE
With the Kotlin Multiplatform plugin installed, you can launch your application with hot reload directly from your code.Click the run icon in the gutter
In the gutter (the left margin of the editor), you’ll see a run icon next to your main function.Click the Run icon and select Run ‘shared [jvm]’ with Compose Hot Reload.
The exact text may vary depending on your target name. For example, if your JVM target is named
desktop, it will show Run ‘desktop’ with Compose Hot Reload.Triggering Reloads
Once your application is running with hot reload, you can apply your code changes in two ways:Automatic on Save (Default)
By default, changes are reloaded automatically when you save your files:- Make changes to your Compose code
- Save the file (
Ctrl+S/Cmd+S) - Your changes appear instantly in the running application
Manual Reload
You can also trigger reloads manually:- Click the Reload UI button in the floating dev tools window
- Use the keyboard shortcut assigned in your IDE settings

IDE Settings
You can customize the hot reload trigger behavior in your IDE settings. Navigate to Settings | Tools | Compose Hot Reload to configure:- When reloads are triggered
- Keyboard shortcuts for manual reload
- Other hot reload behaviors
Run Configurations
The Kotlin Multiplatform plugin automatically creates run configurations for hot reload tasks. You can also create custom run configurations:- Go to Run | Edit Configurations…
- Click + and select Gradle
- Configure the task:
- Gradle project: Select your module
- Tasks: Enter a hot reload task name (e.g.,
hotRunJvm) - Arguments: Add optional arguments like
--autoReload
Available Task Options
You can pass these options to your run configurations:| Option | Description |
|---|---|
--mainClass <FQN> | Specify the main class to run |
--autoReload / --auto | Enable automatic reload mode |
--no-autoReload / --no-auto | Disable automatic reload mode |
Desktop-Only Projects
Troubleshooting
Run configuration not appearing
If you don’t see the “Run with Compose Hot Reload” option:- Verify the Kotlin Multiplatform IDE plugin is installed
- Sync your Gradle project
- Ensure your project has a JVM target configured
Reload not working
If changes aren’t being applied:- Check that your file is saved
- Verify the application is still running
- Look for errors in the dev tools console
- Try triggering a manual reload using the Reload UI button