Sublime Text 2中的条件配色方案

Sha*_*ith 5 sublimetext sublimetext2

在我的工作流程中,我为每个网站项目管理两组代码.一个用于实时代码,另一个用于仍在上演的代码.

我希望通过不同的配色方案来设置实时文件和暂存文件的样式,以便我可以轻松区分它们.

有没有办法根据文件的目录路径更改Sublime Text中的配色方案?


例如:

  • /live/style.css 的风格 Packages/ColorSchemes/ColorScheme_1.tmTheme
  • /staging/style.css 的风格 Packages/ColorSchemes/ColorScheme_2.tmTheme

Ent*_*orm 1

I wrote a simple plugin that met your initial requirements and then ended up adding a few extra features since it could be useful to others as a release.


The plugin utilizes RegEx to allow matching of:

  • FileNames ( full & partial )
  • Extensions
  • Parent Directories
  • SubDirectory Structures

Some Examples:

Path

FileName


Get the plugin:

@ PackageControl

@ GitHub