Better Japanese word handling on Visual Studio Code.
Better cursor movement in Japanese text for VS Code.
Just install the extension. Doing so changes the action for the keybindings below (on macOS, use ⌥Option instead of Ctrl):
Although not visible in command platte, these actions are implemented as commands so that you can reassign any key combinations to them. The table below shows all available commands and their default keybindings:
Command | Default Keybinding (except macOS) | Default keybinding (for macOS) |
---|---|---|
japaneseWordHandler.cursorWordEndLeft |
[*1] | [*1] |
japaneseWordHandler.cursorWordEndLeftSelect |
[*1] | [*1] |
japaneseWordHandler.cursorWordEndRight |
Ctrl+Right | Option+Right |
japaneseWordHandler.cursorWordEndRightSelect |
Ctrl+Shift+Right | Option+Shift+Right |
japaneseWordHandler.cursorWordStartLeft |
Ctrl+Left | Option+Left |
japaneseWordHandler.cursorWordStartLeftSelect |
Ctrl+Shift+Left | Option+Shift+Left |
japaneseWordHandler.cursorWordStartRight |
[*1] | [*1] |
japaneseWordHandler.cursorWordStartRightSelect |
[*1] | [*1] |
japaneseWordHandler.deleteWordEndLeft |
[*1] | [*1] |
japaneseWordHandler.deleteWordEndRight |
Ctrl+Delete | Option+Delete |
japaneseWordHandler.deleteWordStartLeft |
Ctrl+Backspace | Option+Backspace |
japaneseWordHandler.deleteWordStartRight |
[*1] | [*1] |
With the original logic, pressing Ctrl+Right while the cursor is at the beginning of a chunk of Japanese characters will move the cursor to the end of it.
With this extension, on the other hand, the cursor will stop at each place where the Japanese character type (Hiragana, Katakana, ...) changes.
As of VSCode 1.37.0, extension cannot override word related actions below:
Please visit the project's GitHub page and report it.
Enjoy!