歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu下設置 Sublime Text 2 顯示中文 && 輸入中文

Ubuntu下設置 Sublime Text 2 顯示中文 && 輸入中文

日期:2017/2/28 15:48:18   编辑:Linux教程

Sublime text 2在mac os 下用的很舒服,今天嘗試在Ubuntu下使用一下,發現漢字顯示不了,

後來找到方法:

菜單欄 -> Preferences -> File Settings - User,在配置文件中增加:


// Settings in here override those in “Default/Base File.sublime-settings”, and
// are overridden in turn by file type specific settings. Place your settings
// here, to ensure they’re preserved when upgrading.
{
“font_face”: “WenQuanYi Micro Hei Mono”
}

就OK了,其中文泉驿是著名的開源字體 http://wenq.org/

然後我們來解決中文輸入的問題

sudo apt-get install scim

sudo apt-get install scim-pinyin

在“系統-首選項-scim設置裡“

scim設置->全局設置->將預編輯字符串嵌入到客戶端中 勾去掉
scim設置->gtk->嵌入式候選詞標 勾去掉

下來 在“系統-語言支持”裡面選上“scim-bridge”就可以了,記得這些修改完要注銷重新登錄進來哦。

或者 ,打開終端,輸入 pkill scim,然後輸入 scim -d,如果不起作用,那還是建議你注銷一下

Copyright © Linux教程網 All Rights Reserved