intellijsettings-MAC/templates/JavaScript.xml

23 lines
1.3 KiB
XML

<templateSet group="JavaScript">
<template name="log" value="console.log($END$)" description="Console log" toReformat="false" toShortenFQNames="true">
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="rcon" value="constructor(props){&#10; super(props);&#10; &#10; this.state = $END$;&#10; }&#10; " description="Constructor" toReformat="false" toShortenFQNames="true">
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="rcom" value="class $component_name$ extends Component {&#10; render(){&#10; return(&#10; &lt;div&gt;&#10; $END$&#10; &lt;/div&gt;&#10; );&#10; }&#10; &#10; }" description="React Component" toReformat="false" toShortenFQNames="true">
<variable name="component_name" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="promise" value="return new Promise((resolve, reject) =&gt; {&#10; &#10; &#10;});" description="Create a javascript promise" toReformat="false" toShortenFQNames="true">
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
</templateSet>