您的位置:首页 > 其它

Atom中文乱码字体大小设置

2015-07-08 00:00 471 查看
摘要: 中文乱码是我们永远的痛

按 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的值基本就能解决。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: