Jamie337nichols
Jamie337nichols

Reputation: 157

Webstorm IDE: Live Template - Accessing the project name

I am brand new to Webstorm and live templates. But after doing some researching I can't figure out how to include the project name into a live template. It looks like its easy enough in a regular template ${PROJECT_NAME} but I can't find a $PROJECTNAME$ equivalent for live templates. Does this not exist?

Upvotes: 1

Views: 115

Answers (1)

LazyOne
LazyOne

Reputation: 165511

As I understand you want to create file header/top comment block using Live Template rather than create new file using custom File Template?


There is no such expression/function for Live Templates -- they are rather targeted for actual code snippets and not for description/documentation blocks.

Live Templates have only two predefined variables: $END$ and $SELECTION$.

All functions that are available in WebStorm that can be used to modify your live template variables are listed here on official help page.

Upvotes: 2

Related Questions