# Diff & Merge

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

> **TL;DR**
> `File | Settings | Tools | Diff & Merge` for Windows and Linux
>
>
>
> `GoLand | Settings | Tools | Diff & Merge` for macOS
>
>
>
> [Settings… shortcut](https://www.jetbrains.com/help/go/llms-keymap-index.md "ShowSettings") ![the Settings icon](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.settings.svg)

On this page, specify the default behavior of the [Diff Viewer](https://www.jetbrains.com/help/go/differences-viewer.html.md).

| Item | Description |
| --- | --- |
| Diff |
| Context lines | Use the slider to specify the number of context lines that will not collapse, when in the Diff Viewer you click the button ![Collapse all](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.collapseAll.svg) to [collapse the unchanged fragments](https://www.jetbrains.com/help/go/differences-viewer.html.md#collapse_unchanged). |
| Go to the next file after reaching last change | If this checkbox is selected, GoLand will suggest to press [Next Difference shortcut](https://www.jetbrains.com/help/go/llms-keymap-index.md "NextDiff") or [Previous Difference shortcut](https://www.jetbrains.com/help/go/llms-keymap-index.md "PreviousDiff") once more and compare other files |
| Merge |
| Automatically apply non-conflicting changes |    If this checkbox is selected, the interactive merge tool automatically merges all non-conflicting changes.      This is an equivalent to clicking ![Apply not conflicts](https://resources.jetbrains.com/help/img/idea/2026.3/app.diff.applyNotConflicts.svg) in the [Merge](https://www.jetbrains.com/help/go/differences-viewer.html.md) dialog.    |
| Highlight modified lines in gutter | Select this checkbox if you want added/modified lines (relative to the base revision) to be highlighted in the gutter of the Merge dialog. |

