Ubuntu中Atom编辑器显示中文乱码的处理方法
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu中Atom编辑器显示中文乱码的处理方法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在Ubuntu14.04 64位機上安裝Atom,依次在終端輸入如下命令:
1. $ sudo add-apt-repository ppa:webupd8team/atom
2. $ sudo apt-get update
3. ?$ sudo apt-get install atom
處理中文亂碼的問題:
1.??????安裝文泉驛正黑等相關中文字體:$ sudo apt-get install -y ttf-wqy-zenhei fonts-wqy-zenhei ttf-wqy-microhei
2.??????查看系統中文字體:$ fc-list :lang=zh
3.??????打開Atom:
(1)、Edit -> Open Your Config,刪除原有內容,輸入如下內容,保存:
"*":"exception-reporting":userId: "fe150ae1-7895-9104-88e4-51ddc09f54d7"welcome:showOnStartup: falsecore: {}editor:invisibles: {}fontFamily: "Ubuntu Mono, DejaVu Sans Mono, 文泉驛等寬正黑"fontSize: 15?(2)、Edit ->Open Your Stylesheet,刪除原有內容,輸入如下內容,保存:
@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;
}
4. 關閉Atom,再次打開即可。
總結
以上是生活随笔為你收集整理的Ubuntu中Atom编辑器显示中文乱码的处理方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Windows7上使用VS2013编译C
- 下一篇: libcurl库的使用(通过libcur