How to find the current scope


Textmate has a shortcut to show the current scope. ^⇧⌘-P )
I was trying to make some snippets to work but couldn’t find the scope.


This code does the trick:


You can see this code and get some inspiration.


You can also open the Console tab in Developer tools and press ⌘⌥P, that will log the current scope to the console.


For the current version of Atom (I’m using 1.0.19), this is now:



Thanks for the update