-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Use editor.wordSeparators for Ctrl+D multicursor #15774
Comments
We could consider changing |
@alexandrudima Can extensions change the word definitions? Installing |
We have two kinds of word definitions. 1.
|
Yes, an extension cannot register a built in configuartion. |
Just wanted to chime in: this little thing is really bugging me. I recently tried transitioning from PHPStorm and am delighted so far with the result. But: Ctrl+D not honoring the wordsSeparators is that one thing which I always trip about. Would it be possible to have a config-switch to choose which word definitions should be used? I would also like to say thank you for this amazing piece of software, I really like it! |
Bump. It's crazy how much this seemingly small issue hurts me. I depend on ctrl+d to select a word in the way I choose. I'd also love to see settings for honoring camelCase word splitting, but I can live without it. |
Bump. Just dug through several ctrl+d / cmd+d threads to find this. In Atom, I could override my Is there an option that exists to achieve this that I'm not finding? (One that doesn't potentially break other functionality like noted above) Personally, I just want my hotkeys to manipulate/traverse/select text in a consistent pattern for any file type. |
This is so jarring. At the very least I feel this should be an option, but should really be changed by default to act the same way as a double click on a word would. |
Is the change here that Ctrl+D will use This further breaks Cmd+D in TS/JS, as the default |
Configure per-language settings like so:
|
This may depend on your use-casefor CTRL+D. In my opinion this is not a "language" feature, but an "editor" one, and so I have the opposite opinion to you :| |
I understand that I am able to configure this myself, but the whole point of language extensions is that they configure it for me. And sure the language extension could contribute that setting, but they already contribute word boundaries, why are we making them do it twice?
I think thats a good argument to make this a setting, preferably disabled by default as this will affect many peoples workflows, and only ~4 have explicitly requested it. |
I like the fact that I can change the behavior of double-clicking on some text per-language by changing the word boundaries. Idk why PHP has |
If you're double-clicking text in the IDE, you're doing it very differently to how I do 😁 I (and possibly three other people) do care. It's the primary reason that I have been literally unable to use vscode the last times that I have attempted to. It's like having someone move the "[" and "]" keys (looking at you, ergodox) - finger memory of many years must be retrained, and it calls into question the worthiness of the effort. It's behaviour is expected to be predictable in an instant, without thinking "Oh wait, am I in PHP right now? What am I doing in PHP? Why? Why even any of this suffering and uncertainty? What's the point?" If I do need to select a chunk of text like Anyway as @JacksonKearl suggests, a setting is a really good idea, especially since at this moment code exists for doing it both ways! IDEs should have more settings than any other software in the world. |
The concept of a "word" is different per language. If you want it to behave the same way no matter the language, you don't have to change "editor.wordSeparators". |
However this gets resolved, it'd be greatly appreciated if someone could do a write-up on how a user should go about controlling this, and what all is affected. It's especially frustrating to me when packages add their own word separators. Personally, I'd prefer to be able to force all my word separators to be consistent, as I think contextual changes based on different language types is confusing when it comes to keyboard navigation and selecting text, though I can see where many users would find it handy. For me, it'd be nice if I could force my Editor: Word Separators setting to apply regardless of any language type's settings. I'm still confused why double clicking and using cmd+d (ctrl+d for non mac) selects different text in certain cases. |
@JacksonKearl This is intentional, as in it was a feature request and now it is closed with an intentional change. The background is that word definitions from languages are severely broken sometimes, as they are optimized for intellisense, where the word definition is very important. For example Ctrl+D in JSON is useless before this change because of JSON's word definition. This change aligns Ctrl+D with the other places where |
@alexdima Do you have a link to any documentation on this or an idea on why things would seem to be behaving inconsistently? Simple example: This is just one of many inconsistencies I've come across that are frustrating. |
@jsunsawyer I think we are in agreement? 😄 |
@alexdima Hmm, I think I'm confused on word definitions then. Is this not something that can be edited? Are you saying that we're stuck with inconsistencies because certain languages have word definitions that supersede wordseparators settings? |
Here is what will change in the upcoming 1.44 and is available for you to try in Insiders since about 1 month: |
Steps to Reproduce:
1.I changed wordSeparators options to
crlt + D
3.It multiselect either "go" or "home" depend on where I put my cursor, while It should select the whole word "go-home"
The text was updated successfully, but these errors were encountered: