pycharm和sublime设置光标“上下左右”移动快捷键

0. 动机:

我习惯使用如下规则来移动光标:

ctrl + l # right
ctrl + j # left
ctrl + i # up
ctrl + k # down

pycharm和sublime是我比较常用的IDE和文本编辑器,如何配置这个快捷键?

1. pycharm

在Perferences -> Keymap里找到up、down、right、left几个开机键,点鼠标右键”Add keyboard shortcut”即可

2. sublime

在Perferences -> Key Binding,打开配置文件,添加如下几行:

{ "keys": ["ctrl+l"], "command": "move", "args": {"by": "characters", "forward": true} },
{ "keys": ["ctrl+j"], "command": "move", "args": {"by": "characters", "forward": false} },
{ "keys": ["ctrl+k"], "command": "move", "args": {"by": "lines", "forward": true} },
{ "keys": ["ctrl+i"], "command": "move", "args": {"by": "lines", "forward": false}},

保存即可。

你可能感兴趣的:(其他)