Skip to content

Instantly share code, notes, and snippets.

@jotson
Created June 5, 2012 19:28
Show Gist options
  • Save jotson/2877197 to your computer and use it in GitHub Desktop.
Save jotson/2877197 to your computer and use it in GitHub Desktop.
Sublime Text Python command to get scope at cursor position (for theme writing)
Run this in the Python console (Ctrl+`):
sublime.active_window().active_view().scope_name(sublime.active_window().active_view().sel()[0].a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment