Atom中文乱码字体大小设置

按 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的值基本就能解决。

转载于:https://my.oschina.net/lieefu/blog/476228

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值