Sublime Forum

Print Theme Selector

#1

It’s hard to debug themes sometimes, so I made a crude but quite effective plugin that prints the scope of the text at the current cursor. It reads the theme, finds every selector in the theme, scores them against the scope, and then prints out which selector scored the highest. Effectively this should show you what sublime things the text is (scope) and how sublime is coloring it (selector) so that it is much easier to debug themes.

github.com/ajpalkovic/SublimePl … r/theme.py
Also drop this in a keybinding file:

{ "keys": "ctrl+shift+t"], "command": "print_theme_rule"}
0 Likes

#2

Oops, by theme i meant color scheme.

0 Likes

#3

Thanks. I found this useful.

0 Likes

#4

Thanks a lot, this is exactly what I was looking for when trying to customize the theme I’m currently using. Nice work.

0 Likes