Skip to content

Instantly share code, notes, and snippets.

@konstantindenerz
Last active March 14, 2023 23:29
Show Gist options
  • Save konstantindenerz/de6694dbb9f06838cc9bdbc71c41fc40 to your computer and use it in GitHub Desktop.
Save konstantindenerz/de6694dbb9f06838cc9bdbc71c41fc40 to your computer and use it in GitHub Desktop.
PRI live template for angular projects to inject something.
private readonly $name$ = inject($TOKEN$); $END$
@konstantindenerz
Copy link
Author

konstantindenerz commented Mar 1, 2023

How to add live template: https://www.jetbrains.com/help/webstorm/creating-and-editing-live-templates.html

The template above requires this list of variables:

Edit Template Variables

Name Expression Default value Skip if defined
TOKEN
name camelCase(TOKEN)

Bind the template to TypeScript files (context)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment