There is some help coming in vscode v1.80 (it is in the Insiders now). A new setting:
Editor > Smart Select: Select Subwords // default is enabled
Whether subwords (like 'foo` in 'fooBar' or 'foo_bar') should be selected.
The default is the current version where camel[Case]
or foo_[bar]
would be selected with the smartSelect
command (brackets indicating the selections after using the command).
By disabling the setting mentioned above the result becomes [camelCase]
or [foo_bar]
.
So that helps with your camelCase question. However, for foo-bar
, the result is still foo-[bar]
with the setting disabled AND the "editor.wordSeparators"
setting modified to remove the -
. So apparently the smartSelect
commands do not adjust to use the "editor.wordSeparators"
value unfortunately.
I added a comment to the PR: see Add option for smartSelect to ignore subwords. It looks like it is supposed to work for words like foo-bar
but it doesn't for me.