Home > Development Tools > sublime > How to output Chinese in sublime

How to output Chinese in sublime

下次还敢
Release: 2024-04-03 17:09:19
Original
1226 people have browsed it

How to output Chinese in Sublime Text? Install the CJK unified font (Windows) or Adobe Song Type Standard font (Mac). Set UTF-8 encoding (Windows: View > Encoding, Mac: Settings > "encoding": "utf-8"). Enter Chinese using Unicode (Windows: Alt keypad, Mac: Option key).

How to output Chinese in sublime

How to output Chinese in Sublime Text

To use Sublime Text to output Chinese, please follow the steps below:

1. Install the font

  • For Windows users, download and install the CJK unified font (for example, Arial Unicode MS or Microsoft YaHei).
  • For Mac users, CJK fonts are usually pre-installed. If you don't have these fonts, you can download the Adobe Song Type Standard font family from the Adobe website.

2. Set encoding

  • Windows:Open "View">"Encoding">"UTF- 8".
  • Mac: Open "Sublime Text" > "Preferences" > "Settings", and then add the following line in the "Additional User Preferences" area:
<code>"encoding": "utf-8"</code>
Copy after login

3. Enter Chinese

  • Windows: Hold down the Alt key and use the keypad to enter Unicode (for example, Alt 9312 to enter "中") .
  • Mac: Depends on the keyboard layout you are using (for example, when using the US keyboard layout, press Option v to enter "medium").

Additional Tips:

  • If you have trouble typing, make sure you have AutoComplete enabled (View >"AutoComplete").
  • To input Traditional Chinese, please install the Fira Code CJK font in Sublime Text.
  • Make sure the file you use is ASCII encoded to avoid garbled characters.

The above is the detailed content of How to output Chinese in sublime. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
Statement of this Website
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
Latest Issues
Why doesn’t Sublime Text complete code?
From 1970-01-01 08:00:00
0
0
0
Installation of Sublime Text console failed
From 1970-01-01 08:00:00
0
0
0
Sublime configures PHP environment
From 1970-01-01 08:00:00
0
0
0
Sublime text 3 cannot install Emme?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template