Quantcast
Channel: Defining scope for custom Sublime Text 2 snippets - Stack Overflow
Browsing latest articles
Browse All 6 View Live

Answer by Chuck for Defining scope for custom Sublime Text 2 snippets

Actually, you can use the Ctrl+Alt+Shift+P (without using Scope Hunter) and it will show you the scope on the bottom bar on the left side right after the Col/Line information. It's pretty small print...

View Article


Answer by alexwlchan for Defining scope for custom Sublime Text 2 snippets

There's a package called Scope Hunter, by Isaac Muse, which is really helpful for this.It can show you the scope under any cursor in a document, which I've found really helpful when debugging my own...

View Article

Answer by Joseph Knight for Defining scope for custom Sublime Text 2 snippets

View Current Scope of Cursor PositionPlace your cursor in the file where you wish to know the scope.Use this keyboard-shortcut:Windows: ctrl+shift+alt+pMac:ctrl+shift+pThe current scope will be...

View Article

Answer by d_rail for Defining scope for custom Sublime Text 2 snippets

To answer, #1, look in the syntax's .tmLanguage file, look for the key: scopeName. This is what the syntax uses for the snippet's scope value.For example, an excerpt from nathos /...

View Article

Answer by Bibhas Debnath for Defining scope for custom Sublime Text 2 snippets

Here is a list of scopes to use in Sublime Text 2 snippets - ActionScript: source.actionscript.2AppleScript: source.applescriptASP: source.aspBatch FIle: source.dosbatchC#: source.csC++:...

View Article


Defining scope for custom Sublime Text 2 snippets

While trying to write my own snippets for Sublime Text 2, I ran into the following two problems:Finding scope keys. I figured out that I can look through my packages one by one and find references to a...

View Article
Browsing latest articles
Browse All 6 View Live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>