-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select word w/o copying it #11
Comments
Hi @wasker , Do you know the native Just hit Hope this helps |
I would never know by the name of it... Thanks for pointing me there! |
Me neither, but this keyboard shortcut was one of the first productivity features I’ve learned in VSCode, so I use it a lot 😁 . |
I wonder if you'd reconsider reopening this issue. Ctrl-D is better than nothing, but it doesn't behave like Ctrl-Shift-W in Visual Studio 2019. :( It doesn't really select words, and it looks like behavior in general depends on the language in the editor. E.g., if I Ctrl-D on "workbench" in the file below, the whole string with double-quotes gets selected. And this behavior is a bit different in e.g. if PowerShell script is opened in the editor.
|
Also, sorry to bug you - it's just you're the person who already has extension for operations on words, and simple word selection seem to be logical to have there too. :) |
No problem, you are not bugging me 😁 . I'm not familiar with VS2019, so I don't know how it works. I made a search and found this documentation, which says different things about the commands. Maybe you used a different release or has some plugin installed.
Also, my extension has the same selection behaviour as What you need, in fact, is a new Select Word algorithm (probably extracted from VS2019), which appears to recognise only letters, numbers and underscore as valid word characters. Maybe a few other symbols/combinations... Hope this helps |
It appears your request has also been made in VS Code itself. I think these issues can help a bit more, using the |
Thanks for the pointers! I was referring to Edit.SelectCurrentWord behavior. It does look like VSCode needs to have separate functionality. I'll file an issue there. |
Available for all in 1.44. |
That'd be great to be able to just select the word, without copying it.
The text was updated successfully, but these errors were encountered: