-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for recognizing word locales in word operations (#50045) #203605
Conversation
In addition to word boundary inside Japanese/Chinese sentences, I think boundary between Japanese/Chinese character and Latin character should be considered as word boundary by default. Like: |
@alexdima this is a very interesting improvement, assigning to you since you added the grapheme clusters support. let me know if you need anything from my side. |
Thank you! |
…t#50045) (microsoft#203605) * Add support for recognizing word locales in word operations (microsoft#50045) * Move intlSegmenterLocales in the WordCharacterClassifier class * Rerun compiler * Renames * Avoid duplicating code --------- Co-authored-by: Alex Dima <alexdima@microsoft.com>
Corresponds to #50045 in Feature request.
This feature allows you to use
Ctrl+Left
orCtrl+Right
to navigate in languages that are not separated by spaces, such as Japanese or Chinese, with word separators.If the user does not enter any settings, the system will continue to operate as before, so English speakers and others who do not need this feature will not be affected.
Since I am Japanese and often write Markdown and other Japanese text in VS Code, this feature was needed and desired by many people around me.
Example now: (use
|
as the cursor)or if the setting is
"editor.recognizeWordLocales": ""
(default).Example of functionality enabled
The setting is
"editor.recognizeWordLocales": "ja"
.