# Inline dialogs

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

> **TL;DR**
> `Refactor | Inline`
>
>
>
> <context menu of a selection>`| Refactor | Inline`
>
>
>
> [Inline… shortcut](https://www.jetbrains.com/help/go/llms-keymap-index.md "Inline")

<a id="inline_variable"></a>

## Inline Variable dialog

The Inline Variable refactoring allows you to replace a redundant variable with its value.

To access the Inline Variable dialog through a menu item or the keyboard shortcut, place the caret at the variable to be inlined.

The inline refactoring turns the following two variables:

```GO
name := person.Name
data := getData (name)
```

into

```GO
data := getData (person.Name)
```

Also, all occurrences of the `name` variable is replaced with `person.Name`.

## See also

### Procedures

### External Links

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

