Word Divider
January 20, 2024 · View on GitHub
Enable cursor movement in Japanese and Chinese sentences on a word-by-word basis.

Features
| Command | Keybinding for Windows and Linux | Keybinding for Mac | Command to be overwritten | Description |
|---|---|---|---|---|
| wordDivider.cursorWordLeft | Ctrl+LeftArrow | ⌥ ← | cursorWordLeft | Move cursor to the previous word |
| wordDivider.cursorWordEndRight | Ctrl+RightArrow | ⌥ → | cursorWordEndRight | Move cursor to the next word |
| wordDivider.cursorWordLeftSelect | Ctrl+Shift+LeftArrow | ⇧ ⌥ ← | cursorWordLeftSelect | Select the previous word |
| wordDivider.cursorWordEndRightSelect | Ctrl+Shift+RightArrow | ⇧ ⌥ → | cursorWordEndRightSelect | Select the next word |
| wordDivider.deleteWordLeft | Ctrl+Backspace | ⌥ Backspace | deleteWordLeft | Remove the previous word |
| wordDivider.deleteWordEndRight | Ctrl+Delete | ⌥ Delete | deleteWordRight | Remove 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

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 と.

Extension Settings
wordDivider.locale: The locale to use for word dividerauto: Use VS Code's configured display language (default)ja: Japanesezh-CN: Simplified Chinesezh-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