Navigate through camel case

前端 未结 1 1674
陌清茗
陌清茗 2021-01-23 09:04

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 n

相关标签:
1条回答
  • 2021-01-23 09:12

    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.

    From the default keybindings:

    { "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} },
    
    0 讨论(0)
提交回复
热议问题