mac vscode 中更改选项+删除的行为

Changing behavior of option+delete in vscode on mac

每当我尝试使用 option + delete 在 vscode 中删除 mac 上的一个词时,它会删除该词,但一旦遇到非字母字符就会停止。

理想情况下,我想删除每个连续的字符序列,直到达到 space 或句点。

当前行为:

(If I just want to delete the last 'h1')

Cursor at the end of <h1> </h1>

First deletes: '>'

then h1

Finally </

期望的行为:

Cursor at the end of <h1> </h1>

Deletes in one go: </h1>

默认行为确实让我在编码时放慢了速度。我搜索了答案,但找到了 this,这似乎是一个旧功能 (2013),在 high sierra 中不再可用。

非常感谢任何帮助。

查看 并相应地更改您的配置。

听起来您可能想要删除 <>\ 作为单词分隔符。

来自那篇文章:

您的设置文件现在包含一个用于编辑单词导航和单词分隔符的部分 // Characters that will be used as word separators when doing word related navigations or operations "editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\|;:'\",.<>/?",