How to move cursor word by word in PhpStorm integrated terminal?

蹲街弑〆低调 提交于 2020-01-06 04:50:48

问题


I can't use my zsh shortcuts to move the caret by word in PhpStorm's integrated terminal window using i.e. like I use in Terminal App on my Mac.

I have tried to use zsh as shell path in PhpStorm but my default zsh color scheme is not showing well inside of PhpStorm. Seems that also Mac Terminal->Settings shortcuts are not being enabled inside PhpStorm terminal.


回答1:


I have found out that it work only if I bind the shortcuts directly in my ~/.bash_profile, by adding this at the bottom:

bind '"[D": backward-word'
bind '"[C": forward-word'

Close all terminal windows inside PhpStorm after making these changes and open the new one.



来源:https://stackoverflow.com/questions/52206317/how-to-move-cursor-word-by-word-in-phpstorm-integrated-terminal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!