Screen is flickering while using IntelliJ Idea


My MacBook Air M1 screen is flickering when I am using IntelliJ Idea. And right now I am using the most latest version. Please help me.


Do you have Ventura? If yes, then this is probably a known issue -

Two workarounds have been marked as effective against this issue:
1. Do not use Full screen mode
2. Disable Metal rendering  by adding
-Dsun.java2d.metal=false in IDE main menu Help | Edit custom VM options