How to set Chinese in Sublime
Answer: To set Chinese in Sublime, you can edit a preference file or use a plugin.
Detailed steps:
Open Sublime Text using the preference file
- .
- Click "Preferences"->"Preference Settings" in the menu bar.
- In the "Preference Settings" file, find the following code block:
<code class="json">{
// ...
"auto_detect_code_system": true,
"encoding": "UTF-8",
"fallback_encoding": "UTF-8",
}</code>
Copy after login
- Set "auto_detect_code_system" to "false".
- Set "encoding" and "fallback_encoding" to "UTF-8".
- save document.
Use the plug-in
- Install the Chinese (Simplified) for Sublime Text plug-in.
- In Sublime Text, click "Preferences"->"Package Control" in the menu bar.
- Search and install the "Chinese (Simplified) for Sublime Text" plug-in.
- Restart Sublime Text.
Other information
- After setting Chinese, Sublime Text will automatically detect and display Chinese characters.
- If your file contains characters from other languages, you may need to use a multibyte encoding such as UTF-16 or UTF-32.
- You can change the character set by clicking "View"->"Character Set" in the menu bar.
The above is the detailed content of How to set Chinese in sublime. For more information, please follow other related articles on the PHP Chinese website!