javaintellij-ideajava-14java-record

How can I enable Java 14 records in IntelliJ IDEA?


I cannot create Java record class in IntelliJ, and I could not find the option to enable it.

Is there a way to enable it?


Solution

    1. Make sure you have an updated version of the IntelliJ IDEA (2020.1 or later);
    2. Go to the Project Structure and set your Project Language Level to Java 14 (remember, as well, to set Java 14 as your Project SDK, if not done yet).

    See more here.