# 提取方法对话框

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/zh-cn/help/go/llms.txt).

> **TL;DR**
> `重构 | 提取 | 方法`
>
>
>
> `Ctrl+Alt+M` (Windows), `⌘ ⌥ M` (macOS), `⌘ ⌥ M` (IntelliJ IDEA Classic (macOS)), `⌘ ⌥ M` (macOS System Shortcuts), `Ctrl+Alt+M` (XWin), `Ctrl+Alt+M` (GNOME), `Ctrl+Alt+M` (KDE), `Ctrl+Alt+M` (Emacs), `Ctrl+Alt+M` (Sublime Text), `⌘ ⌥ M` (Sublime Text (macOS)), `Ctrl+Alt+M` (VSCode), `⌘ ⌥ M` (VSCode (macOS))

如需了解有关提取方法的更多信息并查看代码示例，请参阅 [提取方法](extract-method.html) 部分。

|  项目  |  描述  |
| --- | --- |
|  名称  |  在此字段中，指定要基于所选源代码生成的函数或方法的名称。  |

## See also

### 外部链接

[https://blog.jetbrains.com/go/2018/10/26/refactorings-in-goland-extract-and-inline/](https://blog.jetbrains.com/go/2018/10/26/refactorings-in-goland-extract-and-inline/)

