Created
July 17, 2012 08:31
-
-
Save hzlzh/3128038 to your computer and use it in GitHub Desktop.
console.log() snippet for Sublime Text 2
This file contains 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
<snippet> | |
<!-- put this file in /packages/User/<Folder Name>/console_log.sublime-snippet then restart your Sublime Text 2 --> | |
<content><![CDATA[console.log($1);$0]]></content> | |
<tabTrigger>conl</tabTrigger> | |
<scope>text.html,source.js</scope> | |
<description>console.log()</description> | |
</snippet> | |
<snippet> | |
<!-- put this in another file /packages/User/<Folder Name>/console_dir.sublime-snippet then restart your Sublime Text 2 --> | |
<content><![CDATA[console.dir($1);$0]]></content> | |
<tabTrigger>cond</tabTrigger> | |
<scope>text.html,source.js</scope> | |
<description>console.dir()</description> | |
</snippet> |
@vlpak No, this is just a snippet (or a shortcut) to write faster the console.log()
command in JavaScript files or <scripts>
tags in HTML. Check the instructions posted by @SkullMasher.
Then you can type "conl" and press the "tab" key and sublime will complete the rest.
Thanks! Work perfectly!
Thank you
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is an output from the
console.log("Hello!");
Could not open file:
[Finished in 0.1s with exit code 3]
[cmd: ['/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc', '']]
[dir: /Applications/Sublime Text.app/Contents/MacOS]
[path: /usr/bin:/bin:/usr/sbin:/sbin]