Android-studio – Move file from one editor window to another (split mode)

android-studiointellij-ideakeyboard shortcutskeymapping

Is it possible to move a file (already opened) from one editor to another in split mode without using mouse and without using tabs (I have tabs disabled).

Example of what i want to accomplish. I enabled split mode (vertical) and opened file X in left editor. I want to move this file X to right editor because I already have file Y int left editor.

I found the command Move to opposite group which works fine only when tabs are enabled. When tabs are disabled (my case) call Move to opposite group force split mode to disappear.

Best Answer

  • Goto File->Settings
  • Then Keymap
  • Type in the searchbox "Move To Opposite Group"
  • Assign a shortcut

Also useful is "Goto Next Splitter" which allows you to switch between your Splitter.

But you'll hardly find a shortcut which is not already occupied.

I used Ctrl + NumPad+ for "Move To Opposite Group" and Ctrl + ArrowRight for "Goto Next Splitter"

You'll be notified that this shortcut is already in use, but you can ignore that. I had no conflicts so far

Related Topic