How to display Chinese in sublime

下次还敢
Release: 2024-04-03 14:12:14
Original
710 people have browsed it

Install Chinese fonts and modify the configuration file to allow Sublime Text to display Chinese: Install Chinese fonts and copy them to the "User" folder, modify the "Default.sublime-text" file, and replace "font_face" with the installed font Restart Sublime Text and verify whether the Chinese display is correct

How to display Chinese in sublime

How to make Sublime Text display Chinese

Method:

1. Install Chinese fonts

  • Open Sublime Text and go to "Preferences">"Browse Packages"
  • In the opened folder, create a folder named "User"
  • Download the Chinese font file (for example: KaiTi.ttf) and copy it to the "User" folder

2. Modify the configuration file

  • In the "User" folder, open the "Default.sublime-text" file
  • In Find the following content in the file:
"font_face": ""
Copy after login
  • Replace it with:
"font_face": "KaiTi"
Copy after login

where "KaiTi" is the name of the Chinese font you installed.

3. Restart Sublime Text

Restart Sublime Text for the changes to take effect. You should now be able to display Chinese correctly in the editor.

Additional Tips:

  • If you encounter any problems, try setting font_encoding to "utf-8".
  • You can view the current encoding by going to "View" > "Encoding".
  • Make sure your operating system has Chinese font support installed.

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

Related labels:
source:php.cn
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 Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!