Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to view one file in a new window in intellij-idea?

What I actually want to do is to view different files in a some project on different screens.

If they are in different windows, I can easily drag one window to another screen.

It's fine if there are other ways can do this. I'm using windows7.

like image 642
Mobility Avatar asked Dec 13 '22 22:12

Mobility


2 Answers

You can drag the editor tab to another screen and it will open in a separate window. See the Detaching Editor Tabs help section for details.

Shift+F4 does the same:

The shortcut can be changed here:

new window

like image 195
CrazyCoder Avatar answered Jun 16 '23 14:06

CrazyCoder


You have to add a new keyboard shortcut in your keymap.
The action is called Open In New Editor Window

Keymap Open In New Editor Window

Then when searching for a class using Ctrl + n (go to Class...) or Ctrl + e (recent files)
instead of opening the Class in the same window by pressing Enter
you can open it in a new window using your own keyboard shortcut (Shift + Enter in my case).

like image 30
luke Avatar answered Jun 16 '23 15:06

luke