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

extract method