浏览骆驼案例 [英] Navigate through camel case
问题描述
我正在使用 Eclipse,我希望我可以通过按 STRG 在以驼峰式大小写的单词之间跳转.现在我正在使用 Sublime,我找不到这样做的快捷方式,也找不到实现它的插件.
I was working with Eclipse and I want that I can jump between words written in camel-case by pressing STRG. Now I'm working with Sublime and I can't find a shortcut to do so nor a plug-in, which achieves it.
下面的例子展示了我的问题
The following example shows my problem
函数名称
在 Eclipse 中,当我按下 STRG 时,它从 a
跳转到 F
到 N
的 aFunctionName
+ 右箭头.在 Sublime 中,它会跳过整个单词.是否有快捷方式、插件或我可以在配置中设置一个条目?
In Eclipse it jumps from a
to the F
to the N
of aFunctionName
, when I press STRG + RIGHTARROW. In Sublime it skips the whole word. Is there a shortcut, a plug-in or can I set an entry into the config?
推荐答案
在 Sublime Text 中,此功能默认绑定到 alt+right.在 ST 行话中,它被称为子词",而不是对驼峰大小写的任何引用.
In Sublime Text, this functionality is bound to alt+right by default. In ST lingo it's referred to as "subwords" rather than having any reference to camelCase.
从默认键绑定:
{ "keys": ["alt+left"], "command": "move", "args": {"by": "subwords", "forward": false} },
{ "keys": ["alt+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} },
{ "keys": ["alt+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} },
{ "keys": ["alt+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} },
这篇关于浏览骆驼案例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!