Open two panes side by side programmatically

I m using OpenfileDescriptor and FileEditorManager to open programmatically a file in the Editor.  Is it possible to open two panes with two different files side by side programatically, to compare them?

1 comment
Comment actions Permalink

If you want to have editor area split in two, with different sides displaying different files, use FileEditorManagerEx.createSplitter method (see e.g. com.intellij.ide.actions.SplitAction implementation).
If you want to display the diff similar to how IDEA shows VCS diff, use com.intellij.diff.DiffManager class.


Please sign in to leave a comment.