Reputation: 96391
Using IntelliJ
, whenever I add implements Serializable
it does not offer to add a default serial version id, similar to how Eclipse does it.
Using Eclipse
, if i do the same, i get a warning and an offer to
How can i get the same behaviour in IntelliJ please?
Upvotes: 2
Views: 2020
Reputation: 401985
This inspection is disabled by default, you need to enable it in Settings:
Once enabled, the quick fix becomes available on Alt+Enter while standing on the highlighted class name:
Upvotes: 8