Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get Jetbrains IDE's embedded terminal to recognize ALT/Option as the Meta key?

I'm currently working in WebStorm, but also use IDEA and RubyMine. I am using the embedded terminal and would like to get the Alt/Option key to be recognized as a the meta key, or at least send key+ESC.

like image 286
zen Avatar asked Oct 14 '14 16:10

zen


People also ask

How do I change the terminal type in IntelliJ?

Press Alt+Right and Alt+Left to switch between active tabs. Alternatively, you can press Alt+Down to see the list of all terminal tabs. To rename a tab, right-click the tab and select Rename Session from the context menu.

How do I open an integrated terminal in IntelliJ?

Opening a Terminal Window We can open the terminal window with ⌥F12 on macOS, or Alt+F12 on Windows and Linux. The terminal supports all the same commands that the operating system supports. and press enter.

How do I change Webstorm terminal?

Go to File -> Settings -> Tools -> Terminal and change Shell path based on the the installed git version.


1 Answers

For macOS users, put these in ~/.inputrc for Bash:

"ƒ": forward-word "∫": backward-word "≥": yank-last-arg "∂": kill-word

And other simple meta key bindings can be defined here. (Unless you use ƒ and ∫ more often.) Note this only works in local shells, not in remote SSH shells.

Ref: https://youtrack.jetbrains.com/issue/IDEA-165184#focus=streamItem-27-1955537-0-0

like image 59
Fish Monitor Avatar answered Oct 24 '22 20:10

Fish Monitor