Better delete concept and subword concept #24056
paolodelfino
started this conversation in
From VSCode
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Basically, let's take a look at this example:
If you put a selection before every backslash, then you move the cursors n spaces away from the backslashes at a distance of at least 2, and then you try to delete, it will remove all the spaces next to the cursors and also the backslashes instead of just the spaces.
Same weird behavior if you try, for example, to delete these spaces, from the end of the line
printf("Hello, World!\n");
: it will remove everything till 'n' instead of just the spaces.From these two examples, we can learn two major things:
The vscode equivalent is just deleteWordLeft and deleteWordRight.
One could play a bit with vscode and try to get the specification out of this, or, I guess, directly read the spec (there should be at least one type of it, which is the source code).
Here, I guess, we could also maybe talk about language-specific thing or whatsoever or maybe just found a solution for subword that's more suitable for most languages based on some criteria.
Finally, I'm not saying it because I'm used to vscode, but because its concept really makes sense on a daily basis.
Beta Was this translation helpful? Give feedback.
All reactions