Skip to content
| Marketplace
Sign in
Visual Studio Code>Keymaps>Quick Chinese DeletionNew to Visual Studio Code? Get it now.
Quick Chinese Deletion

Quick Chinese Deletion

ZacharyJia

|
881 installs
| (1) | Free
To delete a chinese word instead a whole sentence
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Quick Chinese Deletion Extension for Visual Studio Code

Inspiration

VSCode当中进行中文编辑(写latex)的时候,如果使用alt+backspace(Windows上是ctrl+backspace)进行删除的话,会把一大段中文都当成一个单词删掉,而英文则不会(因为应为通过空格区分了单词)。这种方式对于我这种习惯使用alt+backspace来删除的人来说是非常不方便的。找了很久没有发现解决方案,但是前段时间发现了Hungry Delete这个扩展,所以我基于这个扩展和node-segment这个分词工具,完成了这个简单的扩展。

Feature

使用 Alt + Backspace(Windows上为Ctrl + Backspace)进行删除时,会将本行行首至光标之前的文本使用 Node-Segment 进行分词,完成分词后,会删除最后一个词,实现快速的中文删除。

Known Bug

第一次使用时会由于Node-Segment的字典加载而卡顿约1s,暂无找到解决方案。

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft