Mac vs生成get set快捷方式
2019-08-27 本文已影响0人
王广帅
在windows上面使用的ctrl + r ,e 生成get set 的方式在Mac上好像不适应。可以使用另一种快速的方法:
1. 选择要生成get set的字段
2. 右键单击->快速修复 -> Encapsulate fields(and use property)

在windows上面使用的ctrl + r ,e 生成get set 的方式在Mac上好像不适应。可以使用另一种快速的方法:
1. 选择要生成get set的字段
2. 右键单击->快速修复 -> Encapsulate fields(and use property)