Atom中文乱码字体大小设置
2015-07-08 00:00
471 查看
摘要: 中文乱码是我们永远的痛
按 ctrl+,(ctrl+逗号)打开setting窗口,然后点击Open Config Folder按钮,打开设置文件配置窗口,点击左侧的 styles.less,文件内容修改如下:
如果发现其他地方有中文显示不出来,可以用Ctrl+Shift+I来开启调试模式,在调试模式里找到没有显示出中文的元素,在styles.less文件里定义他的样式,修改font-family的值基本就能解决。
按 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的值基本就能解决。
相关文章推荐
- msysgit之git bash方便的复制粘贴,默认工作目录,窗口大小,提高速度等小窍门
- Xposed (二) 深入Module
- Jpush设置Alias和Tags问题
- MySQL提示:The server quit without updating PID file
- 德雷福斯模型
- IOS-获取Model(设备型号)、Version(设备版本号)、app(程序版本号)等
- 40个你可能不知道的Python的特点和技巧
- 不是技术牛人,如何拿到国内IT巨头的Offer?
- 为什么我不想成为Web前端程序员
- 浅谈大型web系统架构
- 全栈工程师的思考
- 更快学会任何东西的终极指南
- 作为一个程序开发者在职场中必须注意的7件事
- 11个小技巧提高程序员工作效率,小习惯更重要
- 让程序员跳槽的非钱原因
- jQuery EasyUI combobox多选及赋值、读取、回显
- 学习笔记(1)
- 当ListView有Header时,onItemClick里的position不正确
- day1 01
- 微信企业号开启回调模式的时候,错误:echostr校验失败,请您检查是否正确解密并输出明文