按 ctrl+,(ctrl+逗号)打开setting窗口,然后点击Open Config Folder按钮,打开设置文件配置窗口,点击左侧的 styles.less,文件内容修改如下:
/* * 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 */ .tree-view { font-size: 18px } // style the background and foreground colors on the atom-text-editor-element // itself atom-text-editor { font-family:Droid Sans Mono, Droid Sans Fallback; } // To style other content in the text editor's shadow DOM, use the ::shadow // expression atom-text-editor::shadow .cursor { } html, body, .tree-view, .tab-bar .tab,.bottom{ font-family:Droid Sans Mono, Droid Sans Fallback; } .terminal { font-size:12px; font-family: Droid Sans Mono, Droid Sans Fallback; } .markdown-preview { h1,h2,h3,h4,h5,h6 { font-family: Droid Sans Mono, Droid Sans Fallback; } }如果发现其他地方有中文显示不出来,可以用Ctrl+Shift+I来开启调试模式,在调试模式里找到没有显示出中文的元素,在styles.less文件里定义他的样式,修改font-family的值基本就能解决。