如何在PhpStorm集成终端中逐字移动光标?

时间:2018-09-06 14:25:31

标签: bash terminal phpstorm caret

我无法使用zsh快捷方式在PhpStorm集成终端窗口中通过 逐字移动插入符号,就像我在Mac上的终端应用程序中使用的那样。

我试图用zsh作为PhpStorm中的shell路径,但是我的默认zsh配色方案在PhpStorm内部显示不佳。似乎在PhpStorm终端中也没有启用Mac Terminal->Settings快捷方式。

1 个答案:

答案 0 :(得分:0)

通过在底部添加以下内容,我发现只有在我的~/.bash_profile中直接绑定快捷方式时,它才有效:

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

进行这些更改后,关闭PhpStorm中的所有终端窗口,然后打开新窗口。