Home  >  Article  >  Development Tools  >  How to set Chinese in sublime

How to set Chinese in sublime

下次还敢
下次还敢Original
2024-04-03 14:24:14631browse

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

  1. .
  2. Click "Preferences"->"Preference Settings" in the menu bar.
  3. 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>
  1. Set "auto_detect_code_system" to "false".
  2. Set "encoding" and "fallback_encoding" to "UTF-8".
  3. save document.

Use the plug-in

  1. Install the Chinese (Simplified) for Sublime Text plug-in.
  2. In Sublime Text, click "Preferences"->"Package Control" in the menu bar.
  3. Search and install the "Chinese (Simplified) for Sublime Text" plug-in.
  4. 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn