dirk.dittert
05/09/2025, 9:19 AMgit mv src/main/java/some/package/Example.java src/main/kotlin/some/package/Example.kt
3. Create a commit just for the rename
4. Fix code
5. Commit changes to file
I am looking for a way to simplify steps 1–3. For example, Refactor | Rename does not allow to change the file extension.Roman Golyshev
05/09/2025, 10:04 AM.java
and the new .kt
file, then IntelliJ will automatically create a “Rename .java to .kt” commit for you:dirk.dittert
05/09/2025, 10:44 AMdirk.dittert
05/09/2025, 11:17 AMephemient
05/09/2025, 1:30 PMgit diff --find-renames=#
)ephemient
05/09/2025, 1:31 PMgit merge
will stop looking after a (configurable) number of file, etc.dirk.dittert
05/09/2025, 1:58 PMephemient
05/09/2025, 2:06 PMdirk.dittert
05/09/2025, 2:07 PMRoman Golyshev
05/09/2025, 2:52 PMJP Sugarbroad
05/09/2025, 2:58 PMRoman Golyshev
05/09/2025, 3:10 PM