Visual Studio Code extension to improve Japanese word handling.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
images
src
.editorconfig
.gitattributes
.gitignore
.vscodeignore
CHANGELOG.md
LICENSE
README.md
package-lock.json
package.json
tsconfig.json
tslint.json

README.md

Japanese Word Handler

Version (VS Marketplace) Rating (VS Marketplace) Installs (VS Marketplace)   Build status zlib license

Better cursor movement in Japanese text for VS Code.

How to activate the logic?

Just install the extension. Doing so changes the action for the keybindings below:

  • Ctrl+Right (or Option+Right on OSX)
  • Ctrl+Left (or Option+Left on OSX)
  • Ctrl+Shift+Right (or Option+Shift+Right on OSX)
  • Ctrl+Shift+Left (or Option+Shift+Left on OSX)

This extension does not add any command to the command platte.

What's the difference from the original?

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.

Original cursor movement

With this extension, on the other hand, the cursor will stop at each place where the Japanese character type (Hiragana, Katakana, ...) changes.

Improved cursor movement

Known limitations

As of VSCode 1.27, extension cannot override word related actions below:

  • Word selection on double click
  • Automatic highlight of a word at where the cursor is
  • 'Match Whole Word' option of text search

Issue report

Please visit the project's GitHub page and .

Enjoy!