Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scroll multiple splits simultaneously in IntelliJ IDEA

Tags:

In IntelliJ IDEA I often split the tabs vertically in order to be able to see multiple files at the same time. This can be useful when the two (or more) files have the same (or similar) structure and I want to compare them (e.g. language files).

My problem is that I'd like to scroll the two splits simultaneously, but can't figure out how (if possible). Is there any setting/plugin for this?

like image 228
LoPoBo Avatar asked Dec 18 '14 11:12

LoPoBo


2 Answers

To compare two files in IntelliJ IDEA 14, just select them in the Project view (keep Ctrl pressed for multi-selection) and choose Compare Two File from the context menu. This will open the Differences Viewer. You can also compare a file with the clipboard or the editor contents.

The Difference Viewer scrolls both files simultaneously (there is a button to disable sync'd scrolling) and allows editing both. Differences are highlighted by word, by line, or not at all.

like image 76
sina72 Avatar answered Oct 02 '22 02:10

sina72


Joined / Wraparound / Continuous Tab Scrolling plugin seems to be what you are looking for.

like image 37
Lovro Pandžić Avatar answered Oct 02 '22 03:10

Lovro Pandžić