LoginSignup
1
0

More than 1 year has passed since last update.

editor.wordSeparatorsの設定をしてますか

Posted at

はじめに

BackspaceやDeleteで1文字ずつ文字を削除するのではなく、Ctrl+BackspaceやCtrl+Deleteで単語単位で削除したい場合があります。

設定のeditor.wordSeparatorsで日本語を指定していないと日本語編集のときに単語単位で動作しません :joy:

他の動作には、Ctrl+←やCtrl+→の単語境界への移動やダブルクリックによる単語選択があります。

解決策

設定(Settings)のeditor.wordSeparatorsに日本語の区切り文字を追加しましょう。

、 。!?「」【】『』()を追加したら、日本語の句読点や全角スペースなどの単位で動作するようになります :relaxed:

さいごに

Ctrl+Backspaceが日本語の単語単位で削除しないのは、editor.wordSeparatorsに日本語の単語境界の文字を設定していないことが原因です。

設定することで日本語を編集しやすくなります :blush:

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0