Skip to content

Instantly share code, notes, and snippets.

@ogur
Created August 24, 2021 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ogur/87e120e9d3ed59a8213b5c2fe9b4ca60 to your computer and use it in GitHub Desktop.
Save ogur/87e120e9d3ed59a8213b5c2fe9b4ca60 to your computer and use it in GitHub Desktop.
inserts DI for anguar from clipboard: private camelname: PascalCase
<template name="prs" value="private $NAME_LOWER$: $NAME$" description="private service DI" toReformat="false" toShortenFQNames="true">
<variable name="NAME_LOWER" expression="camelCase(clipboard())" defaultValue="" alwaysStopAt="true" />
<variable name="NAME" expression="capitalize(clipboard())" defaultValue="" alwaysStopAt="true" />
<context>
<option name="TypeScript" value="true" />
</context>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment