keyboard-shortcutsvisual-studio-codecamelcasing

Is there a way to enable camel humping through method names in VS Code?


As this question is for the "big" Visual Studio and Resharper, I'd like to see that feature in VS Code too.

Scrolling through the shortcut list for VS Code, I couldn't find it but I'm hoping that it's still there but called something less intuitive than camel, hump or such.


Solution

  • I found this extensions to work https://marketplace.visualstudio.com/items?itemName=ow.vscode-subword-navigation

    Funny thing is that you need to configure each combination separately:

    {
        "key": "alt+left",
        "command": "subwordNavigation.cursorSubwordLeft",
        "when": "editorTextFocus"
    },
    {
        "key": "alt+right",
        "command": "subwordNavigation.cursorSubwordRight",
        "when": "editorTextFocus"
    },
    {
        "key": "alt+shift+left",
        "command": "subwordNavigation.cursorSubwordLeftSelect",
        "when": "editorTextFocus"
    },
    {
        "key": "alt+shift+right",
        "command": "subwordNavigation.cursorSubwordRightSelect",
        "when": "editorTextFocus"
    },
    {
        "key": "alt+backspace",
        "command": "subwordNavigation.deleteSubwordLeft",
        "when": "editorTextFocus"
    },
    {
        "key": "alt+delete",
        "command": "subwordNavigation.deleteSubwordRight",
        "when": "editorTextFocus"
    }