Is it possible to change IntelliJ's code generation template for equals() and hashCode()

前端 未结 4 1277
生来不讨喜
生来不讨喜 2020-12-17 08:54

Is it possible to change the code generation template for equals() and hashCode()?

I would like the generated code to use the Java 7

4条回答
  •  感情败类
    2020-12-17 09:15

    UPDATE: have a look at the answer from @datentyp. Leaving mine for those stuck on the old versions

    There are plugins to allow this. Please have a look at this ones:

    http://plugins.jetbrains.com/plugin/6875?pr=idea

    http://plugins.jetbrains.com/plugin/7244?pr=idea

    They are opensource so you can amend them if you need to.

提交回复
热议问题