提炼为变量 将一个表达式提炼为一个变量,并使用变量替换原来的表达式. 操作步骤: 菜单栏: Refactor —> Extract —> Variable... 快捷键: Mac: option + Command + V