Last active
August 29, 2015 14:11
-
-
Save azproduction/7caf7a0ef20b98660162 to your computer and use it in GitHub Desktop.
WebStorm Live Templates
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
console.log($LINE$); | |
// LINE = lineNumber() |
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
console.log('$FUNCTION$@$FILE$:$LINE$');$END$ | |
// FUNCTION = jsMethodName() | |
// FILE = fileNameWithoutExtension() | |
// LINE = lineNumber() |
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
console.log(JSON.stringify($END$, null, 4)); |
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
// Debug tool. Copy variable name then type `cw` -> `console.log('variable=', variable);` | |
console.log('$CLIPBOARD$=', $CLIPBOARD$);$END$ | |
// CLIPBOARD = clipboard() |
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
define(function(require) { | |
$END$ | |
}); |
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
function $END$() { | |
} |
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
function () { | |
$END$ | |
} |
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
@import 'global-variables.less'; | |
.$BLOCK$ { | |
@block: ~'.$BLOCK$'; | |
$END$ | |
} |
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
// Twitter Flight specific component template | |
define(function(require) { | |
require('css!./$COMPONENT_NAME$.css'); | |
var template = require('text!./$COMPONENT_NAME$.html'); | |
var defineComponent = require('defineComponent'); | |
function Component() { | |
this.defaultAttrs({ | |
}); | |
this.after('initialize', function() { | |
this.$node.html(template); | |
$END$ | |
}); | |
} | |
return defineComponent(Component); | |
}); |
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
$MODULE$ = require('$MODULE$') |
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
return $END$; |
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
var that = this; |
rsboarder
commented
Dec 18, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment