double click select variable with a dash

with web components up and coming it would be nice to be able to double click and select an entire variable even if it is not a single word but seperated by a dash
Example
<my-webcomponent></my-webcomponent>  
So in the above case if I double click on my it would highlight the whole word my-webcomponent.

Is there a setting where you can specify the doubclick highlighting criteria?

Thanks,
Dan

0
2 comments

There is an alternative that doesn't do exactly what you want, but close, answered in this thread:

https://stackoverflow.com/a/52947613/5827766

As a workaround, double click to select one of the words and then press ctrl + w.

0

Please sign in to leave a comment.