Ubuntu安装Atom--解决中文乱码问题
PPA安装Atom
sudo add-apt-repository ppa:webupd8team/atom sudo apt-get update sudo apt-get install atom
去除PPA-卸载Atom
sudo apt-get remove atom sudo add-apt-repository --remove ppa:webupd8team/atom sudo apt-get autoremove
解决中文乱码
安装文泉驿正黑等相关中文字体
sudo apt-get install -y ttf-wqy-zenhei fonts-wqy-zenhei ttf-wqy-microhei
Edit->Open Your Stylesheet,删除原有内容,输入如下内容,保存,重启Atom
/* * Your Stylesheet * * This stylesheet is loaded when Atom starts up and is reloaded automatically * when it is changed. * * If you are unfamiliar with LESS, you can read more about it here: * http://www.lesscss.org */ @mono-font-family: "Ubuntu Mono", "文泉驿等宽正黑"; /* 等宽字体 */ @font-family: "Ubuntu", "文泉驿正黑"; /* 非等宽字体 */ 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; }
点赞0
支持一下