Skip to content

Instantly share code, notes, and snippets.

@ljayz
Forked from hzlzh/gist:3128038
Last active November 9, 2018 05:01
Show Gist options
  • Save ljayz/2cb7c3d25c12d2af1dbb450747cd57fb to your computer and use it in GitHub Desktop.
Save ljayz/2cb7c3d25c12d2af1dbb450747cd57fb to your computer and use it in GitHub Desktop.
Snippet for Sublime Text 3
<snippet>
<!-- put this file in /Packages/User/console_log.sublime-snippet -->
<content><![CDATA[console.log($SELECTION$1);]]></content>
<tabTrigger>log</tabTrigger>
<scope>text.html,source.js</scope>
<description>console.log()</description>
</snippet>
<snippet>
<!-- put this file in /Packages/User/json_stringify.sublime-snippet -->
<content><![CDATA[JSON.stringify($SELECTION$1)]]></content>
<tabTrigger>stringify</tabTrigger>
<scope>text.html,source.js</scope>
<description>JSON.stringify()</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment