Sublime 2 -changing background color based on file type?

后端 未结 3 1258
你的背包
你的背包 2021-01-13 06:52

Using an existing Sublime 2 color scheme, is there a way to tweak the background color selectively for eg. .js files only? Many thanks!

3条回答
  •  佛祖请我去吃肉
    2021-01-13 07:18

    You have to modify your .tmTheme color scheme plist. You can find it with menu Preferences/Browse Packages..., Color Scheme - Default directory.

    You should add something like this:

    
        scope
        source.js
        settings
        
            background
            #000000
        
    
    

    as a child of the settings array (of course you have to change #000000 with your color code).

提交回复
热议问题