如何在IntelliJ IDEA中启用Java 14的records功能?

huangapple go评论67阅读模式
英文:

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

  1. 确保你的IntelliJ IDEA已经更新到2020.1版本或更高版本;
  2. 进入项目结构并将你的项目语言级别设置为Java 14(同时也记得设置Java 14为你的项目SDK,如果尚未完成)。

更多详情请查看这里

英文:
  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.

huangapple
  • 本文由 发表于 2020年8月12日 04:48:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/63366167.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定