英文:
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?
英文:
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?
答案1
得分: 5
- 确保你的IntelliJ IDEA已经更新到2020.1版本或更高版本;
- 进入项目结构并将你的项目语言级别设置为
Java 14
(同时也记得设置Java 14
为你的项目SDK,如果尚未完成)。
更多详情请查看这里。
英文:
- Make sure you have an updated version of the IntelliJ IDEA (2020.1 or later);
- Go to the Project Structure and set your Project Language Level to
Java 14
(remember, as well, to setJava 14
as your Project SDK, if not done yet).
See more here.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论