How to refresh Sublime Text 3 workspace color schemes?

前端 未结 3 2028
清酒与你
清酒与你 2021-02-14 17:09

When you save a project, Sublime Text will create a .sublime-workspace file. In this file, there is an array of buffers, and for each buffer there is a color_scheme property. Th

3条回答
  •  梦谈多话
    2021-02-14 17:59

    Expanding on the answer given by Tot you can do this for all views in all windows that are open by using a nested list comprehension (remember this is Python so we can be pretty flexible):

    [ v.settings().erase("color_scheme") for views in [ w.views() for w in sublime.windows() ] for v in views ]
    

    This way you don't have to run the command in each tab individually.

提交回复
热议问题