Compare With Clipboard

Compare text, files or directories and even use the clipboard contents.

GoLand has a built-in diff viewer for code, revisions, and even images.

Select any pair of files and press ⌘D (macOS) / Ctrl+D (Windows/Linux).

To quickly compare the editor with the clipboard, choose View | Compare with Clipboard.

If you have selected a single file, the IDE will prompt you to select another file to compare it to.


Related Resources

Improve Code Readability and Navigation
Improve Code Readability and Navigation
Discover how to manage code visibility with code folding in Go
Create a Function in Another Package
Create a Function in Another Package
Type a non-existing function name and generate its implementation in a package of your choice.
Empower your `Printf`-like functions with coding assistance
Empower your `Printf`-like functions with coding assistance
Provide hints and highlights for message formats in custom `Printf`-like functions.