How to handle Chinese garbled characters in the Atom editor in Ubuntu
Install Atom on Ubuntu14.04 64-bit machine, and input the following commands on the terminal in sequence:
1. $ sudo add-apt-repository ppa: webupd8team/atom
2. $ sudo apt-get update
3. $ sudo apt-get install atom
Handle Chinese garbled characters:
1. install 文 and other Chinese fonts: $ sudo apt-get install-y ttf-wqy-zenhei fonts-wqy-zenhei ttf-wqy-microhei
2. view the Chinese font of the system: $ fc-list: lang = zh
3. Open Atom:
(1), Edit-> Open Your Config, delete the original content, enter the following content, and save:
"*":
"Exception-reporting ":
UserId: "fe150ae1-7895-9104-88e4-51ddc09f54d7"
Welcome:
ShowOnStartup: false
Core :{}
Editor:
Invisibles :{}
FontFamily: "Ubuntu Mono, DejaVu Sans Mono, wenquanyi, and so on"
FontSize: 15
(2) Edit-> Open Your Stylesheet, delete the original content, enter the following content, and save:
@ Mono-font-family: "Ubuntu Mono", "wenquanyi and other wide and black";/* width font */
@ Font-family: "Ubuntu", "";/* Non-width font */
Html, body, ol, ul, li, h1, h2, h3, h4, h5, h6, div, p, span, pre, section, input, textarea,
Table,. atom-panel,. status-bar,. tree-view,. title,. current-path,. tooltip {
Font-family: @ font-family;
}
. Autocomplete-plus span, code,.-tree-view-,. symbols-view/*,. editor */{
Font-family: @ mono-font-family;
}
Atom-text-editor.editor {
Font-family: @ mono-font-family;
}
.-Tree-view -{
Font-size: 14px;
}
4. Close Atom and open it again.
Install Atom through PPA in Ubuntu
Unofficial Atom editor in Windows
Compile and install the Atom editor in Ubuntu
Ubuntu and derivative systems install Atom 0.104.0
Install the Atom text editor on Ubuntu/Linux Mint
Github Atom details: click here
Github Atom: click here