搜尋
首頁開發工具sublime自訂Sublime Text3主題、背景色、前景色等樣式

下面由sublime教學欄位給大家介紹自訂Sublime Text3主題,自訂背景色,前景色,選中顏色等字體樣式(本人護眼色),希望對需要的朋友有幫助!

自訂Sublime Text3主題、背景色、前景色等樣式

之前有根據"如何優雅使用Sublime Text3(Sublime設定豆沙綠背景色和自訂主題)"這篇文章修改過主題樣式,我把作者的主題放入我的包內,但是打開後發現,連側邊欄按鍵按鈕其他的都是綠的,真的是啥都綠的不行,我改回原來的黑色主題,結果發現除了文本編輯區是黑色的,其他地方都還是綠的,我把那個主題從包裡刪掉了還是不行,搞得我只能重裝軟體,後來我發現配色的那幾個配色方案也在這個包裡,我就想能不能透過複製修改裡面的文件來達到我要的效果,經過嘗試後發現真的可以,以下是我的實現方法:


1.先放自己效果圖

#2.修改方式如下:

# 1.開啟Sublime Text3/Packages目錄下的Color Scheme - Default.sublime-package(以壓縮套件形式開啟)

##2.右鍵將Monokai.sublime-color-scheme檔,傳送到/桌面

#3.修改Monokai.sublime-color-scheme檔案顏色參數值

4.修改檔名

5.修改後的Monokai.sublime-color-scheme檔案放入Color Scheme - Default.sublime-package壓縮套件內

##6.修改首選項/配色方案

7.點選你的配色方案

## 

8.我的配色方案設定檔內容

{
    "name": "longxin",
    "author": "Sublime HQ Pty Ltd, Wimer Hazenberg",
    "variables":
    {
        "black": "hsl(0, 0%, 0%)",
        "selection_border_color": "hsl(60, 17%, 11%)",
        "background_color": "hsl(120°, 40.5%, 85.5%)",
        "blue": "hsl(338°, 94.6%, 56.3%)",
        "selection_color": "hsl(120°, 9.3%, 58.0%)",
        "orange": "hsl(32, 98%, 56%)",
        "orange2": "hsl(30, 83%, 34%)",
        "orange3": "hsl(47, 100%, 79%)",
        "purple": "hsl(261, 100%, 75%)",
        "red": "hsl(0, 93%, 59%)",
        "red2": "hsl(338, 95%, 56%)",
        "white": "hsl(0, 0%, 97%)",
        "white2": "hsl(60, 36%, 96%)",
        "white3": "hsl(0°, 6.5%, 15.1%)",
        "yellow": "hsl(0°, 0.0%, 50.2%)",
        "yellow2": "hsl(0°, 0.0%, 14.1%)",
        "yellow3": "hsl(60, 12%, 79%)",
        "yellow4": "hsl(120°, 9.3%, 58.0%)",
        "yellow5": "hsl(50, 11%, 41%)"
    },
    "globals":
    {
        "foreground": "var(white3)",
        "background": "var(background_color)",
        "caret": "color(var(white2) alpha(0.9))",
        "block_caret": "color(var(white2) alpha(0.4))",
        "invisibles": "color(var(white3) alpha(0.35))",
        "line_highlight": "var(yellow4)",
        "selection": "var(selection_color)",
        "selection_border": "var(selection_border_color)",
        "misspelling": "var(red2)",
        "active_guide": "color(var(orange2) alpha(0.69))",
        "find_highlight_foreground": "var(black)",
        "find_highlight": "var(orange3)",
        "brackets_options": "underline",
        "brackets_foreground": "color(var(white3) alpha(0.65))",
        "bracket_contents_options": "underline",
        "bracket_contents_foreground": "color(var(white3) alpha(0.65))",
        "tags_options": "stippled_underline"
    },
    "rules":
    [
        {
            "name": "Comment",
            "scope": "comment",
            "foreground": "var(yellow5)"
        },
        {
            "name": "String",
            "scope": "string",
            "foreground": "var(yellow)"
        },
        {
            "name": "Number",
            "scope": "constant.numeric",
            "foreground": "var(purple)"
        },
        {
            "name": "Built-in constant",
            "scope": "constant.language",
            "foreground": "var(purple)"
        },
        {
            "name": "User-defined constant",
            "scope": "constant.character, constant.other",
            "foreground": "var(purple)"
        },
        {
            "name": "Variable",
            "scope": "variable"
        },
        {
            "name": "Keyword",
            "scope": "keyword - (source.c keyword.operator | source.c++ keyword.operator | source.objc keyword.operator | source.objc++ keyword.operator), keyword.operator.word",
            "foreground": "var(red2)"
        },
        {
            "name": "Annotation Punctuation",
            "scope": "punctuation.definition.annotation",
            "foreground": "var(red2)"
        },
        {
            "name": "JavaScript Dollar",
            "scope": "variable.other.dollar.only.js",
            "foreground": "var(red2)"
        },
        {
            "name": "Storage",
            "scope": "storage",
            "foreground": "var(red2)"
        },
        {
            "name": "Storage type",
            "scope": "storage.type",
            "foreground": "var(blue)",
            "font_style": "italic"
        },
        {
            "name": "Entity name",
            "scope": "entity.name - (entity.name.filename | entity.name.section | entity.name.tag | entity.name.label)",
            "foreground": "var(yellow2)"
        },
        {
            "name": "Inherited class",
            "scope": "entity.other.inherited-class",
            "foreground": "var(yellow2)",
            "font_style": "italic underline"
        },
        {
            "name": "Function argument",
            "scope": "variable.parameter - (source.c | source.c++ | source.objc | source.objc++)",
            "foreground": "var(orange)",
            "font_style": "italic"
        },
        {
            "name": "Language variable",
            "scope": "variable.language",
            "foreground": "var(orange)",
            "font_style": "italic"
        },
        {
            "name": "Tag name",
            "scope": "entity.name.tag",
            "foreground": "var(red2)"
        },
        {
            "name": "Tag attribute",
            "scope": "entity.other.attribute-name",
            "foreground": "var(yellow2)"
        },
        {
            "name": "Function call",
            "scope": "variable.function, variable.annotation",
            "foreground": "var(blue)"
        },
        {
            "name": "Library function",
            "scope": "support.function, support.macro",
            "foreground": "var(blue)"
        },
        {
            "name": "Library constant",
            "scope": "support.constant",
            "foreground": "var(blue)"
        },
        {
            "name": "Library class/type",
            "scope": "support.type, support.class",
            "foreground": "var(blue)",
            "font_style": "italic"
        },
        {
            "name": "Library variable",
            "scope": "support.other.variable"
        },
        {
            "name": "Invalid",
            "scope": "invalid",
            "foreground": "var(white2)",
            "background": "var(red2)"
        },
        {
            "name": "Invalid deprecated",
            "scope": "invalid.deprecated",
            "foreground": "var(white2)",
            "background": "var(purple)"
        },
        {
            "name": "JSON String",
            "scope": "meta.structure.dictionary.json string.quoted.double.json",
            "foreground": "var(yellow3)"
        },
        {
            "name": "YAML String",
            "scope": "string.unquoted.yaml",
            "foreground": "var(white3)"
        },
        {
            "name": "diff.header",
            "scope": "meta.diff, meta.diff.header",
            "foreground": "var(yellow5)"
        },
        {
            "name": "markup headings",
            "scope": "markup.heading",
            "font_style": "bold"
        },
        {
            "name": "markup headings",
            "scope": "markup.heading punctuation.definition.heading",
            "foreground": "var(orange)"
        },
        {
            "name": "markup h1",
            "scope": "markup.heading.1 punctuation.definition.heading",
            "foreground": "var(red2)"
        },
        {
            "name": "markup links",
            "scope": "markup.underline.link",
            "foreground": "var(blue)"
        },
        {
            "name": "markup bold",
            "scope": "markup.bold",
            "font_style": "bold"
        },
        {
            "name": "markup italic",
            "scope": "markup.italic",
            "font_style": "italic"
        },
        {
            "name": "markup bold/italic",
            "scope": "markup.italic markup.bold | markup.bold markup.italic",
            "font_style": "bold italic"
        },
        {
            "name": "markup hr",
            "scope": "punctuation.definition.thematic-break",
            "foreground": "var(yellow5)"
        },
        {
            "name": "markup blockquote",
            "scope": "markup.quote punctuation.definition.blockquote",
            "foreground": "var(yellow5)"
        },
        {
            "name": "markup bullets",
            "scope": "markup.list.numbered.bullet",
            "foreground": "var(purple)"
        },
        {
            "name": "markup bullets",
            "scope": "markup.list.unnumbered.bullet | (markup.list.numbered punctuation.definition)",
            "foreground": "color(var(white) alpha(0.67))"
        },
        {
            "name": "markup code",
            "scope": "markup.raw",
            "background": "color(var(white) alpha(0.094))"
        },
        {
            "name": "markup punctuation",
            "scope": "markup.raw punctuation.definition.raw",
            "foreground": "color(var(white) alpha(0.67))"
        },
        {
            "name": "markup punctuation",
            "scope": "text & (punctuation.definition.italic | punctuation.definition.bold | punctuation.definition.raw | punctuation.definition.link | punctuation.definition.metadata | punctuation.definition.image | punctuation.separator.table-cell | punctuation.section.table-header | punctuation.definition.constant)",
            "foreground": "color(var(white) alpha(0.67))"
        },
        {
            "name": "diff.deleted",
            "scope": "markup.deleted",
            "foreground": "var(red2)"
        },
        {
            "name": "diff.inserted",
            "scope": "markup.inserted",
            "foreground": "var(yellow2)"
        },
        {
            "name": "diff.changed",
            "scope": "markup.changed",
            "foreground": "var(yellow)"
        },
        {
            "scope": "constant.numeric.line-number.find-in-files - match",
            "foreground": "color(var(purple) alpha(0.63))"
        },
        {
            "scope": "entity.name.filename",
            "foreground": "var(yellow)"
        },
        {
            "scope": "message.error",
            "foreground": "var(red)"
        },

        {
            "scope": "diff.deleted",
            "background": "hsla(338, 50%, 56%, 0.15)",
            "foreground_adjust": "l(+ 5%)"
        },
        {
            "scope": "diff.deleted.char",
            "background": "hsla(338, 65%, 56%, 0.30)",
            "foreground_adjust": "l(+ 10%)"
        },
        {
            "scope": "diff.inserted",
            "background": "hsla(80, 50%, 53%, 0.15)",
            "foreground_adjust": "l(+ 5%)"
        },
        {
            "scope": "diff.inserted.char",
            "background": "hsla(80, 65%, 53%, 0.30)",
            "foreground_adjust": "l(+ 10%)"
        },
    ]
}
 

8.很興奮有木有,問題解決了嗎?能用紅包表示的,暫就不用多言語了....

#

以上是自訂Sublime Text3主題、背景色、前景色等樣式的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述
本文轉載於:csdn。如有侵權,請聯絡admin@php.cn刪除
崇高文本與代碼:比較分析崇高文本與代碼:比較分析May 03, 2025 am 12:07 AM

SublimeTextisidealforthosevaluingspeedandsimplicity,whileVSCodesuitsthoseneedingextensivefeaturesandcustomization.SublimeTextoffersquickfileaccesswith"GotoAnything"andaminimalisticapproach,butmaylackout-of-the-boxfunctionality.VSCodeprovide

崇高的文字:您的編碼伴侶崇高的文字:您的編碼伴侶May 02, 2025 am 12:01 AM

sublimetextisapowerfulcodingcompanionduetoitsspeed,自定義和keykefeatures.1)itoffersincrediblediblesdibblesdibblesdiblespeedforhandlinglargefiles.2)其FlexibalibalyallibilityallibalibaliityallosalabolalabolalabolalAsextenSivexTensivexTomizationWithPluginSandThemes.3)

在Sublime文本和VS代碼之間進行選擇:哪個編輯器最好?在Sublime文本和VS代碼之間進行選擇:哪個編輯器最好?May 01, 2025 am 12:03 AM

SublimeText更适合处理大文件和喜欢轻量级编辑器的用户,而VSCode更适合需要IDE功能和强大扩展性的用户。1.SublimeText以速度和简洁著称,适合处理大文件。2.VSCode以扩展性和微软支持著称,适合需要IDE功能的用户。

崇高文本:代碼編輯器的簡介崇高文本:代碼編輯器的簡介Apr 30, 2025 am 12:11 AM

SublimeText是一款功能強大且靈活的代碼編輯器,值得程序員探索。 1)它支持多重選擇與編輯,允許同時修改多個位置。 2)插件系統豐富,可擴展功能。 3)基本用法直觀,高級用法包括正則表達式和宏。 4)常見錯誤如插件衝突可通過卸載或調整配置解決。 5)性能優化通過管理插件和配置文件實現。

開發人員的崇高文本:使用編輯器的指南開發人員的崇高文本:使用編輯器的指南Apr 29, 2025 am 12:15 AM

SublimeText因其速度快、功能強大和豐富的插件生態系統而備受開發者青睞。 1.多行編輯與多光標功能允許同時修改多處文本。 2.命令面板和快捷鍵提高操作效率。 3.通過PackageControl管理插件,滿足各種開發需求。 SublimeText是開發者的理想選擇,提升編程效率。

崇高文字:探索定價和可用性崇高文字:探索定價和可用性Apr 28, 2025 am 12:03 AM

SublimeText的定價為$99美元(個人和商業許可證起價),採用一次性購買模式,支持Windows、macOS和Linux:1.提供免費試用版,購買後永久使用並獲得更新;2.可從官方網站或第三方商店下載,但建議從官方網站購買以確保靈活性。

訪問崇高的文字:探索您的選項訪問崇高的文字:探索您的選項Apr 27, 2025 am 12:24 AM

你可以通過免費試用、購買許可證或申請教育許可證來獲取SublimeText。 1)免費試用:無時間限制,但保存文件時會提示購買。 2)購買許可證:一次性支付99美元,獲得終身更新和支持。 3)教育許可證:學生和教育工作者可享受折扣,需驗證身份。

崇高文本:探索其功能崇高文本:探索其功能Apr 26, 2025 am 12:10 AM

SublimeText是一款功能強大的文本編輯器,適用於多種編程語言和文件格式。 1.多重選擇與編輯功能允許同時修改多個位置,提高編輯效率。 2.命令面板通過快捷鍵訪問,執行各種操作,如格式化代碼和管理插件。

See all articles

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱工具

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

SublimeText3 英文版

SublimeText3 英文版

推薦:為Win版本,支援程式碼提示!

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

WebStorm Mac版

WebStorm Mac版

好用的JavaScript開發工具

VSCode Windows 64位元 下載

VSCode Windows 64位元 下載

微軟推出的免費、功能強大的一款IDE編輯器