Skip to content

Instantly share code, notes, and snippets.

@jonpemby
Created August 17, 2017 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonpemby/e5dd49086f603f558aebf22d45334be3 to your computer and use it in GitHub Desktop.
Save jonpemby/e5dd49086f603f558aebf22d45334be3 to your computer and use it in GitHub Desktop.
Get current scope in Atom
atom.workspace.getActiveTextEditor().getGrammar().scopeName
@jonpemby
Copy link
Author

Usage

Get the current scope of the active text editor by running this command in the dev tools console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment