為Xcode的代碼編輯器自定義主題

Xcode的代碼編輯器是可以進(jìn)行主題設(shè)置的继找,如果是白色背景一般會(huì)比較傷眼喘帚,所以都會(huì)修改一些主題。

在Xcode菜單欄中進(jìn)行偏好設(shè)置恨狈,可以設(shè)置Fonts&Colors,它會(huì)提供一些現(xiàn)有的主題介返,可以對(duì)現(xiàn)有的主題進(jìn)行顏色拴事、字體大小的設(shè)置:

image

也可以自行進(jìn)行設(shè)置沃斤,或者下載其他人設(shè)置好的主題文件,導(dǎo)入到Xcode中去刃宵。比如我這個(gè)主題:

image

主題文件都是xml寫的衡瓶,內(nèi)容在文末可以直接復(fù)制,新建一個(gè)文件命名為Monokai.dvtcolortheme牲证,將文末的xml內(nèi)容復(fù)制進(jìn)去就可以了哮针。

然后將這個(gè)主題文件放到Xcode的主題文件夾中,這個(gè)文件夾通過終端來打開比較方便坦袍,路徑是:~/Library/Developer/Xcode/UserData/FontAndColorThemes/

放進(jìn)去后重啟一下Xcode十厢,就可以在偏好設(shè)置中看到他了,選中就可以了捂齐,我習(xí)慣將所有文字大小都調(diào)成18蛮放,比較大,看起來對(duì)眼睛好一些奠宜,也可以把背景調(diào)成護(hù)眼色(色調(diào):55包颁,飽和度:123,亮度:205压真,紅:199娩嚼,綠:237,藍(lán):204)滴肿。

主題內(nèi)容:

<?xml version="1.0" encoding="UTF-8"?>  
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">  
<plist version="1.0">  
<dict>  
    <key>DVTConsoleDebuggerInputTextColor</key>  
    <string>0.973 0.973 0.941 1</string>  
    <key>DVTConsoleDebuggerInputTextFont</key>  
    <string>Menlo-Regular - 12.0</string>  
    <key>DVTConsoleDebuggerOutputTextColor</key>  
    <string>0.973 0.973 0.941 1</string>  
    <key>DVTConsoleDebuggerOutputTextFont</key>  
    <string>Menlo-Regular - 12.0</string>  
    <key>DVTConsoleDebuggerPromptTextColor</key>  
    <string>0.973 0.973 0.949 1</string>  
    <key>DVTConsoleDebuggerPromptTextFont</key>  
    <string>Menlo-Regular - 12.0</string>  
    <key>DVTConsoleExectuableInputTextColor</key>  
    <string>0.973 0.973 0.941 1</string>  
    <key>DVTConsoleExectuableInputTextFont</key>  
    <string>Menlo-Regular - 12.0</string>  
    <key>DVTConsoleExectuableOutputTextColor</key>  
    <string>0.973 0.973 0.949 1</string>  
    <key>DVTConsoleExectuableOutputTextFont</key>  
    <string>Menlo-Regular - 12.0</string>  
    <key>DVTConsoleTextBackgroundColor</key>  
    <string>0.153 0.157 0.133 1</string>  
    <key>DVTConsoleTextInsertionPointColor</key>  
    <string>0.973 0.973 0.941 1</string>  
    <key>DVTConsoleTextSelectionColor</key>  
    <string>0.219608 0.219608 0.188235 1</string>  
    <key>DVTDebuggerInstructionPointerColor</key>  
    <string>0.705792 0.8 0.544 1</string>  
    <key>DVTSourceTextBackground</key>  
    <string>0.153 0.157 0.133 1</string>  
    <key>DVTSourceTextBlockDimBackgroundColor</key>  
    <string>0.153 0.157 0.133 1</string>  
    <key>DVTSourceTextInsertionPointColor</key>  
    <string>0.973 0.973 0.941 1</string>  
    <key>DVTSourceTextInvisiblesColor</key>  
    <string>0.153 0.157 0.133 1</string>  
    <key>DVTSourceTextSelectionColor</key>  
    <string>0.219608 0.219608 0.188235 1</string>  
    <key>DVTSourceTextSyntaxColors</key>  
    <dict>  
        <key>xcode.syntax.attribute</key>  
        <string>0.4 0.851 0.937 1</string>  
        <key>xcode.syntax.character</key>  
        <string>0.682 0.506 1 1</string>  
        <key>xcode.syntax.comment</key>  
        <string>0.459 0.443 0.369 1</string>  
        <key>xcode.syntax.comment.doc</key>  
        <string>0.459 0.443 0.369 1</string>  
        <key>xcode.syntax.comment.doc.keyword</key>  
        <string>0.459 0.443 0.369 1</string>  
        <key>xcode.syntax.identifier.class</key>  
        <string>0.651 0.886 0.18 1</string>  
        <key>xcode.syntax.identifier.class.system</key>  
        <string>0.4 0.851 0.937 1</string>  
        <key>xcode.syntax.identifier.constant</key>  
        <string>0.651 0.886 0.18 1</string>  
        <key>xcode.syntax.identifier.constant.system</key>  
        <string>0.4 0.851 0.937 1</string>  
        <key>xcode.syntax.identifier.function</key>  
        <string>0.651 0.886 0.18 1</string>  
        <key>xcode.syntax.identifier.function.system</key>  
        <string>0.4 0.851 0.937 1</string>  
        <key>xcode.syntax.identifier.macro</key>  
        <string>0.992 0.592 0.122 1</string>  
        <key>xcode.syntax.identifier.macro.system</key>  
        <string>0.992 0.592 0.122 1</string>  
        <key>xcode.syntax.identifier.type</key>  
        <string>0.651 0.886 0.18 1</string>  
        <key>xcode.syntax.identifier.type.system</key>  
        <string>0.4 0.851 0.937 1</string>  
        <key>xcode.syntax.identifier.variable</key>  
        <string>0.651 0.886 0.18 1</string>  
        <key>xcode.syntax.identifier.variable.system</key>  
        <string>0.4 0.851 0.937 1</string>  
        <key>xcode.syntax.keyword</key>  
        <string>0.976 0.149 0.447 1</string>  
        <key>xcode.syntax.number</key>  
        <string>0.682 0.506 1 1</string>  
        <key>xcode.syntax.plain</key>  
        <string>0.973 0.973 0.949 1</string>  
        <key>xcode.syntax.preprocessor</key>  
        <string>0.976 0.149 0.447 1</string>  
        <key>xcode.syntax.string</key>  
        <string>0.902 0.859 0.455 1</string>  
        <key>xcode.syntax.url</key>  
        <string>0.459 0.443 0.369 1</string>  
    </dict>  
    <key>DVTSourceTextSyntaxFonts</key>  
    <dict>  
        <key>xcode.syntax.attribute</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.character</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.comment</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.comment.doc</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.comment.doc.keyword</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.identifier.class</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.identifier.class.system</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.identifier.constant</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.identifier.constant.system</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.identifier.function</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.identifier.function.system</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.identifier.macro</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.identifier.macro.system</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.identifier.type</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.identifier.type.system</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.identifier.variable</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.identifier.variable.system</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.keyword</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.number</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.plain</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.preprocessor</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.string</key>  
        <string>Menlo-Regular - 12.0</string>  
        <key>xcode.syntax.url</key>  
        <string>Menlo-Regular - 12.0</string>  
    </dict>  
</dict>  
</plist>  

查看作者首頁(yè)

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末岳悟,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子泼差,更是在濱河造成了極大的恐慌贵少,老刑警劉巖,帶你破解...
    沈念sama閱讀 217,734評(píng)論 6 505
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件堆缘,死亡現(xiàn)場(chǎng)離奇詭異春瞬,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)套啤,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,931評(píng)論 3 394
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來随常,“玉大人潜沦,你說我怎么就攤上這事⌒鞣眨” “怎么了唆鸡?”我有些...
    開封第一講書人閱讀 164,133評(píng)論 0 354
  • 文/不壞的土叔 我叫張陵,是天一觀的道長(zhǎng)枣察。 經(jīng)常有香客問我争占,道長(zhǎng)燃逻,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,532評(píng)論 1 293
  • 正文 為了忘掉前任臂痕,我火速辦了婚禮伯襟,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘握童。我一直安慰自己姆怪,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,585評(píng)論 6 392
  • 文/花漫 我一把揭開白布澡绩。 她就那樣靜靜地躺著稽揭,像睡著了一般。 火紅的嫁衣襯著肌膚如雪肥卡。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,462評(píng)論 1 302
  • 那天步鉴,我揣著相機(jī)與錄音,去河邊找鬼唠叛。 笑死,一個(gè)胖子當(dāng)著我的面吹牛艺沼,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播障般,決...
    沈念sama閱讀 40,262評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼,長(zhǎng)吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼挽荡!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起定拟,我...
    開封第一講書人閱讀 39,153評(píng)論 0 276
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎青自,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體延窜,經(jīng)...
    沈念sama閱讀 45,587評(píng)論 1 314
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,792評(píng)論 3 336
  • 正文 我和宋清朗相戀三年逆瑞,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了伙单。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 39,919評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡哈肖,死狀恐怖吻育,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情牡彻,我是刑警寧澤扫沼,帶...
    沈念sama閱讀 35,635評(píng)論 5 345
  • 正文 年R本政府宣布,位于F島的核電站庄吼,受9級(jí)特大地震影響缎除,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜总寻,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,237評(píng)論 3 329
  • 文/蒙蒙 一器罐、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧渐行,春花似錦轰坊、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,855評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)。三九已至蕴忆,卻和暖如春颤芬,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背套鹅。 一陣腳步聲響...
    開封第一講書人閱讀 32,983評(píng)論 1 269
  • 我被黑心中介騙來泰國(guó)打工站蝠, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人卓鹿。 一個(gè)月前我還...
    沈念sama閱讀 48,048評(píng)論 3 370
  • 正文 我出身青樓菱魔,卻偏偏與公主長(zhǎng)得像,于是被迫代替她去往敵國(guó)和親吟孙。 傳聞我的和親對(duì)象是個(gè)殘疾皇子澜倦,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,864評(píng)論 2 354

推薦閱讀更多精彩內(nèi)容

  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn)杰妓,斷路器肥隆,智...
    卡卡羅2017閱讀 134,656評(píng)論 18 139
  • 1. 新建項(xiàng)目并進(jìn)入目錄 2.創(chuàng)建一個(gè)簡(jiǎn)單的頁(yè)面 3.啟動(dòng) 4.準(zhǔn)備本地化文件 下載地址:zh-CN.yml放到b...
    ahtest閱讀 1,325評(píng)論 0 3
  • 云破天開出日輪,萬(wàn)水千山沐朝暉稚失。 滿室光明鎖不住,化作金縷自在飛恰聘。 2013年7月
    心夢(mèng)天涯閱讀 195評(píng)論 0 1
  • 大家好句各,很高興有機(jī)會(huì)和大家分享有關(guān)RIE課程的相關(guān)點(diǎn)滴吸占。 一、我為什么探索幼兒教育凿宾? 我們?cè)饺チ私夂⒆臃停綍?huì)有大量...
    鄒龍?jiān)诼飞?/span>閱讀 346評(píng)論 0 0
  • 本篇內(nèi)容整理自馮蕊分享內(nèi)容《1小時(shí)寫作入門件蚕,零基礎(chǔ)也可以成為碼字高手》,結(jié)合個(gè)人理解而成产禾,如有不同建議排作,歡迎留言交...
    小馬哥S閱讀 656評(píng)論 4 14