提取方法 重构用于从代码段中创建方法。选择代码块并按 &shortcut:ExtractMethod;(重构 | 提取 | 方法):

extract method