summaryrefslogtreecommitdiff
path: root/User/isset.sublime-snippet
diff options
context:
space:
mode:
Diffstat (limited to 'User/isset.sublime-snippet')
-rw-r--r--User/isset.sublime-snippet11
1 files changed, 11 insertions, 0 deletions
diff --git a/User/isset.sublime-snippet b/User/isset.sublime-snippet
new file mode 100644
index 0000000..7b13ffe
--- /dev/null
+++ b/User/isset.sublime-snippet
@@ -0,0 +1,11 @@
+<snippet>
+ <!-- Example: Hello, ${1:this} is a ${2:snippet}. -->
+ <content><![CDATA[
+isset(${1:\$foo}) ? ${1:\$foo} : ${2:null}
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>isset?</tabTrigger>
+ <description>if isset x then x else y</description>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.php</scope>
+</snippet>