[乐意黎]Sublime光标移入移出括号单词行等的快捷键设置

版权声明:本文若为 {aerchi/乐意黎} 原创文章,未经允许不得镜像、采集博客内容。如有转载, 请务必注明来源。 https://blog.csdn.net/aerchi/article/details/89395960

使用sublime text每次输入完一个函数或者标签,光标一般都是停留在括号中间,要跳出来要使用左右方向键或者end键 这俩键键区比较远,按起来麻烦,可以自己设置快捷键实现跳出的功能。

菜单栏: Preferences-> Key Bindings: 

如下,在上图的右侧根据需要重启动添加剂,按键可以修改
Shift: shift,   Ctrl: ctrl,  Alt: alt,   Space(空格): space

注意:  forward 的值, true 表示向后,false 表示向前

//光标移到上一个字符前
{ "keys": ["shift+space"], "command":"move", "args": {"by": "characters", "forward": false} 
//光标移到下一个字符后
{ "keys": ["shift+space"], "command":"move", "args": {"by": "characters", "forward": true} }


//光标移到上一个单词前
{ "keys": ["shift+space"], "command":"move", "args": {"by": "word_ends", "forward": false}  }
//光标移到下一个单词后
{ "keys": ["shift+space"], "command":"move", "args": {"by": "word_ends", "forward": true}  }

//光标移到下一行前
{ "keys": ["shift+space"], "command":"move", "args": {"by": "lines", "forward": false}  }
//光标移到下一行后
{ "keys": ["shift+space"], "command":"move", "args": {"by": "lines", "forward": true}  }

 乐意黎

猜你喜欢

转载自blog.csdn.net/aerchi/article/details/89395960