Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA - detach editor window

I have recently removed tabs from my IntelliJ setup, because with all the features available to navigate between files, who needs them?

The issue is, the normal way of detaching an editor window would be to drag the tab onto another screen (or area). There doesn't appear to be anything in the key mappings for detaching an editor window. Is there a way of doing this via the keyboard?

like image 458
Misha Griffiths Avatar asked Nov 20 '14 17:11

Misha Griffiths


People also ask

How do I restore default layout in IntelliJ?

From the main menu, select Window | Restore Default Layout or press Shift+F12 .


1 Answers

The keyboard shortcut your are looking for is SHIFT+F4 (the action assigned to this shortcut is called Open Source in New Window. When you invoke this action the currently opened tab (file) will be opened in new editor window. However the file will remain opened in the main window too, but I believe that this is as close as you can get to the functionality you describe, at least for now.

Option 2

Open the "Open class" dialog using CTRL+N search for a class you want to open in detached window and hit CTRL+SHIFT+ENTER. That will open the class in a new editor window.

Unfortunately this seems to work only for Java classes and not for other files (CTRL+SHIFT+N dialog). I created a bug report for the last problem, so if you think it might be useful, feel free to vote for it.

like image 188
Bohuslav Burghardt Avatar answered Oct 12 '22 23:10

Bohuslav Burghardt