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