Skip to content

Instantly share code, notes, and snippets.

@mgutz
Created April 1, 2015 15:46

Revisions

  1. Mario Gutierrez created this gist Apr 1, 2015.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    Get scope of current file

    ```
    atom.workspace.getActiveEditor().getGrammar().scopeName
    ```