Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee | |
CSS: source.css | |
D: source.d | |
Diff: source.diff | |
Erlang: source.erlang | |
Go: source.go | |
GraphViz: source.dot | |
Groovy: source.groovy | |
Haskell: source.haskell | |
HTML: text.html(.basic) | |
JSP: text.html.jsp | |
Java: source.java | |
Java Properties: source.java-props | |
Java Doc: text.html.javadoc | |
JSON: source.json | |
Javascript: source.js | |
BibTex: source.bibtex | |
Latex Log: text.log.latex | |
Latex Memoir: text.tex.latex.memoir | |
Latex: text.tex.latex | |
LESS: source.css.less | |
TeX: text.tex | |
Lisp: source.lisp | |
Lua: source.lua | |
MakeFile: source.makefile | |
Markdown: text.html.markdown | |
Multi Markdown: text.html.markdown.multimarkdown | |
Matlab: source.matlab | |
Objective-C: source.objc | |
Objective-C++: source.objc++ | |
OCaml campl4: source.camlp4.ocaml | |
OCaml: source.ocaml | |
OCamllex: source.ocamllex | |
Perl: source.perl | |
PHP: source.php | |
Regular Expression(python): source.regexp.python | |
Python: source.python | |
R Console: source.r-console | |
R: source.r | |
Ruby on Rails: source.ruby.rails | |
Ruby HAML: text.haml | |
SQL(Ruby): source.sql.ruby | |
Regular Expression: source.regexp | |
RestructuredText: text.restructuredtext | |
Ruby: source.ruby | |
SASS: source.sass | |
Scala: source.scala | |
Shell Script: source.shell | |
SQL: source.sql | |
Stylus: source.stylus | |
TCL: source.tcl | |
HTML(TCL): text.html.tcl | |
Plain text: text.plain | |
Textile: text.html.textile | |
XML: text.xml | |
XSL: text.xml.xsl | |
YAML: source.yaml |
This comment has been minimized.
This comment has been minimized.
This is awesome; exactly what I was looking for to help me make better, more targeted snippets :) |
This comment has been minimized.
This comment has been minimized.
TPL : text.html I seek the better syntax ... if you have :) |
This comment has been minimized.
This comment has been minimized.
Is it possible to get scope for files without any extensions? |
This comment has been minimized.
This comment has been minimized.
There is one more that may be handy when making color schemes - |
This comment has been minimized.
This comment has been minimized.
Thank a lot for this, also I know there are very few people who uses PL/SQL on Sublime (way better than Jdeveloper), but there should be "maybe" someone just like me that uses Sublime for Anything and Everything; So there is this plugin called Oracle PL/SQL that will give you some sintax recognition. I had a good pair of snippets and the Scope for the developers that may want to check it out will be: source.plsql Hope this results useful for someone. |
This comment has been minimized.
This comment has been minimized.
I know there is sass in there, but could you add in scss: source.scss for reference as well? |
This comment has been minimized.
This comment has been minimized.
Nice list, mate! |
This comment has been minimized.
This comment has been minimized.
thank you! |
This comment has been minimized.
This comment has been minimized.
I was struggling with the scope in a snippet and just found this. Thank you! |
This comment has been minimized.
This comment has been minimized.
Awesome!, thanks |
This comment has been minimized.
This comment has been minimized.
FreeMarker or ftl : text.html.ftl |
This comment has been minimized.
This comment has been minimized.
Very handy! |
This comment has been minimized.
This comment has been minimized.
thanks |
This comment has been minimized.
This comment has been minimized.
Thanks. |
This comment has been minimized.
This comment has been minimized.
Twig? |
This comment has been minimized.
This comment has been minimized.
Thank You! |
This comment has been minimized.
This comment has been minimized.
Really helpful ! Thanks ! |
This comment has been minimized.
This comment has been minimized.
PostgreSQL - scope.pgsql |
This comment has been minimized.
This comment has been minimized.
Is there a scope for new files? (I want to trigger a snippet even before I save a new file) |
This comment has been minimized.
This comment has been minimized.
Prolog- source.prolog. |
This comment has been minimized.
This comment has been minimized.
Nice! Super useful |
This comment has been minimized.
This comment has been minimized.
great gist, thank you very much. |
This comment has been minimized.
This comment has been minimized.
Perfect man ... tanks a lot |
This comment has been minimized.
This comment has been minimized.
thanks, Can you add Twig: text.html.twig |
This comment has been minimized.
This comment has been minimized.
Thanks for the list! |
This comment has been minimized.
This comment has been minimized.
Thanks, Mr. @iambibhas. By the way, How did you know that ? I wanna make a snippet related to ".Rmd", but there is no your list. Therefore, I can't use my custom snippet... |
This comment has been minimized.
This comment has been minimized.
Thanks for the list, is it possible to add TypeScript and React support? .ts, .jsx, .tsx |
This comment has been minimized.
This comment has been minimized.
Thanks a lot!!! |
This comment has been minimized.
This comment has been minimized.
This is great. Also keep in mind you can always check and see (in the status bar) the current scope:
|
This comment has been minimized.
This comment has been minimized.
Thanks you very much |
This comment has been minimized.
This comment has been minimized.
How might you be able to have php.scope and have a snippet complete the entire . I opened a php file and hit the Cmd + Option + p and get "embedding.php" but the mini autocomplete popup won't show this source. Any ideas?? Awesome list by the way!! |
This comment has been minimized.
This comment has been minimized.
@awakekat - I could be wrong but it looks like you are using Advanced Custom Fields. If so, this will be helpful, https://github.com/smilledge/acf-sublime-snippets |
This comment has been minimized.
This comment has been minimized.
Thank You! |
This comment has been minimized.
This comment has been minimized.
Thanks you |
This comment has been minimized.
This comment has been minimized.
Thanks you |
This comment has been minimized.
This comment has been minimized.
very useful list |
This comment has been minimized.
This comment has been minimized.
For those who are asking about having the snippets work for all files or for files that have not been saved yet, just leave out the scope, it's optional anyway, and it'll work for all files. |
This comment has been minimized.
This comment has been minimized.
Thank you, this is so useful. |
This comment has been minimized.
This comment has been minimized.
Thanks for the list. |
This comment has been minimized.
This comment has been minimized.
@PacmanBits, use I also found that |
This comment has been minimized.
This comment has been minimized.
There are $ symbol how to solve? |
This comment has been minimized.
This comment has been minimized.
Thanks, very useful! |
This comment has been minimized.
This comment has been minimized.
how to add scope for multiple file types |
This comment has been minimized.
This comment has been minimized.
How can we extend the valid scope list? I'd particularly like to see .txt and .md added. Can I add my own custom scopes somehow? |
This comment has been minimized.
This comment has been minimized.
Assembly: |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
If you don't give any scope, Then it will run globally means everywhere you can use particular snippets. |
This comment has been minimized.
This comment has been minimized.
https://superuser.com/questions/848836/how-do-i-see-what-the-current-scope-is-in-sublimetext ctrl+shift+alt+p does the job in windows. |
This comment has been minimized.
This comment has been minimized.
Yes. As mentioned above, |
This comment has been minimized.
This comment has been minimized.
Thank you so much... |
This comment has been minimized.
This comment has been minimized.
Thanks for all the scopes. |
This comment has been minimized.
This comment has been minimized.
Inline React (i.e. via Babel):
|
This comment has been minimized.
This comment has been minimized.
For Crystal apps:
|
This comment has been minimized.
This comment has been minimized.
This is so coolI am not sure why Cplusplus is c++ instead of c++ but ok |
This comment has been minimized.
Thank you very much, very handy!