Word Divider

January 20, 2024 · View on GitHub

Format Lint Publish Test CodeQL

Create package Dependency Review Dev Containers

Enable cursor movement in Japanese and Chinese sentences on a word-by-word basis.

examples

Features

CommandKeybinding for Windows and LinuxKeybinding for MacCommand to be overwrittenDescription
wordDivider.cursorWordLeftCtrl+LeftArrow cursorWordLeftMove cursor to the previous word
wordDivider.cursorWordEndRightCtrl+RightArrow cursorWordEndRightMove cursor to the next word
wordDivider.cursorWordLeftSelectCtrl+Shift+LeftArrow cursorWordLeftSelectSelect the previous word
wordDivider.cursorWordEndRightSelectCtrl+Shift+RightArrow cursorWordEndRightSelectSelect the next word
wordDivider.deleteWordLeftCtrl+Backspace BackspacedeleteWordLeftRemove the previous word
wordDivider.deleteWordEndRightCtrl+Delete DeletedeleteWordRightRemove the next word

Differences from Japanese Word Handler

This extension is inspired by sgryjp/japanese-word-handler.

Japanese Word Handler move based on character type, while Word Divider move based on word recognition.

Using Word Handler

examples

Using Japanese Word Handler

While Word Divider divides 拡張機能 into 拡張 and 機能, and 使うと into 使う and , we can see that the Japanese Word Handler treats 拡張機能 as 拡張機能 and 使うと as 使 and .

Japanese Word Handler examples

Extension Settings

  • wordDivider.locale: The locale to use for word divider
    • auto: Use VS Code's configured display language (default)
    • ja: Japanese
    • zh-CN: Simplified Chinese
    • zh-TW: Traditional Chinese

Known Issues

  • Cannot double click to select a word. #50
  • Cannot move word by word in SOURCE CONTROL message box. #48

Release Notes

See CHANGELOG.md