可以为 结构 类型中的每个字段生成所有 get 和 set 方法。在结构中的任何字段名称上按 &shortcut:ShowIntentionActions; 并选择 生成 getter 和 setter。