Город МОСКОВСКИЙ
00:01:44

IntelliJ IDEA Tips & Tricks #45: Auto convert a record to a class with Alt + Enter!

Аватар
Программирование Мобильных Приложений
Просмотры:
26
Дата загрузки:
04.12.2023 22:30
Длительность:
00:01:44
Категория:
Технологии и интернет

Описание

Starting version 14, Java supports records. In IntelliJ IDEA 2020.3 (Early Access Preview version), there is an interesting feature to convert records to classes. Do Alt + Enter (or Option + Return in case of Mac) and choose the option “Convert record to class”. But note that you cannot convert a class to a record. This may be useful when you want to fall-back to older versions of Java. Give it a try!

Рекомендуемые видео