command + n 打开 Generate 按着command多选成员变量即可生成想要的构造器。 转载于:https://www.cnblogs.com/hunzino1/p/8477411.html