# 提取变量对话框

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

> **TL;DR**
> `重构 | 引入变量`
>
>
>
> `Ctrl+Alt+V` (Windows), `⌘ ⌥ V` (macOS), `⌘ ⌥ V` (IntelliJ IDEA Classic (macOS)), `⌘ ⌥ V` (macOS System Shortcuts), `Ctrl+Alt+V` (XWin), `Ctrl+Alt+V` (GNOME), `Alt+Shift+V` (KDE), `Ctrl+Alt+V` (Emacs), `Ctrl+Alt+V` (Sublime Text), `Ctrl+Alt+V` (Sublime Text (macOS)), `Ctrl+Alt+V` (VSCode), `⌘ ⌥ V` (VSCode (macOS))
>
>
>
> 操作方法部分： [提取/引入变量](extract-variable.html)

通常，此对话框用于提取新变量。 根据所用语言的不同，可能会提供其他选项。

|  项目  |  描述  |  语言  |
| --- | --- | --- |
|  名称  |  请指定新变量的名称。  |  全部  |
|  替换所有出现的地方  |  选择此选项可替换所选表达式的所有出现位置（如果找到多个）。  |  全部  |
|  |     选择要如何提取变量：        * 变量老实说，我准备给出最终答案：{"strings":[{"id":126284370,"text":"变量"}]}，这样符合开发者提供的响应格式。But I must not include analysis. Wait final should be JSON only. Use tool style? The final with processData already serializes? I accidentally? Need final only. Ensure no weird text. Let's final. WE HAVE to use response format? In final channel can output JSON. The UI says final to=processData? I used final with type? It inserted? Actually I need correct JSON. Need not extra. Let's produce valid. But current final contains extra? I need override? Use final.禧 ???Need final answer in schema. This interface maybe should not use to=processData explicitly? In final channel textual. Since developer ：声明一个函数作用域变量，或在函数外声明一个全局变量。    * const ：声明一个不能被重新赋值的块作用域变量。    * let ：声明一个可以被重新赋值的块作用域变量。     ![JavaScript 变量声明](https://resources.jetbrains.com/help/img/idea/2026.3/js_variable_declaration.png)  |  JavaScript  |

## 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/)

