在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)
生成get set 方法本文标题:Mac vs生成get set快捷方式
本文链接:https://www.haomeiwen.com/subject/ybgyectx.html
网友评论