Last active
May 11, 2018 18:16
-
-
Save ZYinMD/751b60f9149658551eaef559c5091b97 to your computer and use it in GitHub Desktop.
JavaScript console.log() snippet for Sublime Text 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Documentation: http://docs.sublimetext.info/en/latest/extensibility/snippets.html --> | |
<!-- Clone or save this code as js-console.log.sublime-snippet into Data/Packages/User. No need to restart Sublime. | |
(If you choose to Copy-Paste-SaveAs... with Sublime, be careful not to save as .xml. It's actually hard not to) --> | |
<snippet> | |
<content> | |
<![CDATA[console.log(${1:'${2:keep tabbing}: ', ${3:${2:}}});]]> | |
</content> | |
<!-- Set a tabTrigger: how to trigger the snippet --> | |
<tabTrigger>csl</tabTrigger> | |
<!-- Optional: Set a description for the tabTrigger --> | |
<description>console.log('Message: ', expression)</description> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>text.html, text.plain, source.js</scope> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Type "csl" to trigger. Use tab to move between fields.