Skip to content
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

"deleteInsideWord" also removes whitespace before it #237219

Open
Nikita0x opened this issue Jan 3, 2025 · 1 comment
Open

"deleteInsideWord" also removes whitespace before it #237219

Nikita0x opened this issue Jan 3, 2025 · 1 comment
Assignees

Comments

@Nikita0x
Copy link

Nikita0x commented Jan 3, 2025

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.95.3
  • OS Version: Version: Linux x64 5.15.0-125-generic (Linux Mint)

Steps to Reproduce:

  1. bind "deleteInsideWord" command to some key
  2. use it inside a word

Expected result:
The word will be deleted BUT NOT THE SPACE BEFORE IT.

Actual result:
The word is deleted AND THE SPACE BEFORE IT.

I'm not sure if this is a bug or not, but I feel like it is a bug, because for instance "deleteWordRight" and "deleteAllRight" work as intended - without deleting the space before it.
Here is a video of how it messes my indentation:
Alt+w -"deleteInsideWord"
Tab - "deleteWordRight"
https://github.com/user-attachments/assets/3b437d78-9885-4ada-bd9b-7dc3c1433647

And if it is not a bug, please advice on how to remove that annoying thing.

@Nikita0x Nikita0x changed the title "deleteInsideWord" also removes shitespace before it "deleteInsideWord" also removes whitespace before it Jan 3, 2025
Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.96.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants