To set Chinese input in Sublime Text, you need to install the following Chinese language pack and change user preferences: 1. Install the Chinese language pack: Search and install "Chinese Language" through Package Control. 2. Set user preferences: add "chinese_lang": "zh_CN" at the end of the Preferences.sublime-settings file. 3. Restart Sublime Text: Close and restart to apply changes.
How to set Chinese in Sublime Text
Sublime Text does not support Chinese input by default. To set up Chinese input, you need to install the Chinese language pack.
Steps:
Install the Chinese language pack:
Ctrl
Shift
P
(Windows/Linux) or Cmd
Shift
P
( Mac). Install Package
. Chinese Language
and press Enter. Set user preferences:
Open Sublime Text’s user preference file:
%APPDATA%\Sublime Text 3\Packages\User\Preferences.sublime-settings
$HOME/.config/sublime-text -3/Packages/User/Preferences.sublime-settings
~/Library/Application Support/Sublime Text 3/Packages/User/Preferences.sublime-settings
Add the following to the end of the file:
<code>"chinese_lang": "zh_CN"</code>
Restart Sublime Text:
Result:
Now, you can enter Chinese in Sublime Text. When typing Chinese, Sublime Text will automatically recognize and provide Chinese input suggestions.
The above is the detailed content of How to set sublime to Chinese. For more information, please follow other related articles on the PHP Chinese website!