I usually have a vertical split with two editor panes next to each other. Is there a way to have the same file in both of these panes?
To get the same editor side by side, select Window > New Editor and then drag the new editor next to the original one.
Click within the editor window to give it focus. From the Window menu, select Split.
Go to Settings by ctrl+Alt+S. Go to keymap where you can search (close all) and add your desire shortcut key for it.
In the 'Open File' or 'Go To Class' dialog, or Project view, press Alt-Shift-Enter
(instead of just Enter
) to have the selected file open in the current pane even if it's already open in another pane.
Shift-Enter
will open the file in a floating window.
In older versions of IntelliJ (maybe before IntelliJ 2016): this shortcut was just Shift-Enter
.
Shift-Enter
Right click on the file tab > Split Vertically / Split Horizontally
Being in the file that you want to split, press Ctrl + Shift + A > type "Split Vertically" / "Split Horizontally" > Enter
Being in the file that you want to split, Window > Editor Tabs > Split Vertically / Split Horizontally
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With