A simple plugin for Android Studio/IDEA that generates a default serialVersionUID field for serializable classes, support Kotlin and Java.
- In IDEA or Android Studio: go to
Preferences -> Plugins
and searchGenerateSerialVersionUID
, you will find several plugins with the same name, choose the one whose author isOuyangfeng
.
or
- Download it and install via
Preferences → Plugins → Install plugin from disk
.
- Make sure your class has implemented
Serializable
interface. - Right-click in the class body and select Generate, SerialVersionUID to confirm.
- You can also use the shortcut Ctrl + Alt + G to quickly generate it.
If you think this plugin is useful to you,, buy me a coffee please.
Email: [email protected]
Blog: http://youngfeng.com
Wechat official account: 欧阳锋工作室