How to change font color for Terminus package in sublime text 3

时光毁灭记忆、已成空白 提交于 2020-12-07 04:18:28

问题


How to change font color for Terminus package in sublime text 3.

I went to C:\Users\\AppData\Roaming\Sublime Text 3\Packages\User\Terminus.sublime-settings

and then added this text below to the user setting but nothing happened. please help.

[{
     "theme": "user",
        "user_theme_colors": {      
         "04": "#0000ee",  // blue     
    },
},
]

回答1:


The reason that this doesn't work is that the settings that you're using (as posted above) are broken. This appears to be a bug in Terminus because when you use Preferences > Package Settings > Terminus > Settings, the default file content should be { } and not [ ]; sublime-settings files are JSON Objects, not JSON Lists (as sublime-keymap files are, for example).

So it should be enough to amend your settings file with content like the following; as noted in the comments above, the theme color you posted tells Terminus what color to use when it is representing the standard terminal color for blue, so this is modified to adjust the foreground color to be that color:

{
     "theme": "user",
    "user_theme_colors": {      
        "foreground": "#0000ee"
    },
}

In my testing here, changing the settings file and saving it is enough to see the change immediately reflected, so you should be able to have the settings open in one pane and a Terminal in another and be able to see results as you modify the scheme until things look right.

There's a command in the command palette labelled Terminus Utilities: Generate User Theme that forces a regeneration of the custom theme information, which may be of use in case the live update doesn't seem to work.



来源:https://stackoverflow.com/questions/60569669/how-to-change-font-color-for-terminus-package-in-sublime-text-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!