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.

Interested in JVM Development?

call to action image

Did you know you can get IntelliJ IDEA to download your JDK too?

Learn More


Related Resources

Add a Breakpoint
Add a Breakpoint
Add breakpoints when you get an exception in your code.
Create a new class
Create a new class
Create a new class and a new package.
Inlay Hints
Inlay Hints
Inlay hints provide additional information about your code.