Turn on Preview Features to try new Java Features

The latest versions of Java contain "Preview Features", features that are fully functional but require developer feedback. Try them out in IntelliJ IDEA.

If you want to use preview features in the latest versions of Java in IntelliJ IDEA, you need to set the language level to Preview.

Go to Project Structure, ⌘; (macOS) / Ctrl+Alt+Shift+S (Windows/Linux), make sure you have the correct JDK selected, and pick the "Preview" option from the Language Level dropdown.


Related Resources

Convert Class to Record
Convert Class to Record
Use inspections to convert classes to Java 16 records.
Enable Git Staging
Enable Git Staging
Git Staging is an alternative approach to IntelliJ IDEA Changelists.
Create New Class
Create New Class
Quickly add new classes to your project.