Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to close the small editor window when injecting language reference in intellij?

As suggested by this document, I'm using language injection feature to edit strings with intellij.

But my problem is even after my work done and un-injecting the language reference, (as per '7.' mentioned in the documentation), the small editor window appearing (which can be seen by '6.' in the documentation) is still not getting closed.

Is there any key combination or any other way to close it easily?

like image 590
Supun Wijerathne Avatar asked Aug 16 '17 13:08

Supun Wijerathne


People also ask

What is language injection in Intellij?

Language injections let you work with pieces of code in other languages embedded in your code.


1 Answers

You can use the standard window close shortcut (applicable to any windows within IntelliJ) usually this is CTRL F4 but you can work out what your mapping is by having a look at Preferences > Keymap > Window > Editor Tabs > Close.

close editor keymap

Or - less conveniently - you could click the x close icon in the fragment editor tab.

fragment editor tab

Hitting the ESC key to close the Edit Fragment window sounds appealing but that was rejected.

like image 69
glytching Avatar answered Oct 03 '22 06:10

glytching