I want to make a template like something $NAME$ other $LOWNAME$
so that when I use it, I\'m taken to $NAME$ input list and $LOWNAME$ is automatically filled with de
To do this with file templates (without expressions) in PHPStorm you can use Java functions in combination with Apache Velocity Template Language:
#set( $name = ${NAME} )
<?php
class ${NAME} extends Model{
protected \$table = '$name.toLowerCase()';
}
If by "decapitalizing" you mean to lower case only first letter then YES, otherwise No (as there is no function for lower casing all characters).
something $NAME$ other $LOWNAME$
decapitalize(NAME)
and tick/check "Skip if defined" boxNow when template will be expanded, and if you enter "CapitalShip" for $NAME$
variable, the
$LOWNAME$
will automatically become "capitalShip"
http://www.jetbrains.com/phpstorm/webhelp/edit-template-variables-dialog.html