PHPStorm Notes

Live Templates – see docs

$SELECTION$$SELECTION$ is used in surround templates and denotes the code fragment to be wrapped. After the template expands, it wraps the selected text as specified in the template.
$END$$END$ indicates the position of the caret when the code snippet is complete
Predefined template variables
timestamp()Returns the current time in milliseconds calculated from the January 1, 1970.
phpClassName()Returns the short name of the current PHP class.
clipboard()Returns the contents of the system clipboard.
Functions used in live template variables

Macros – see docs

$PROMPT[:TEXT:DEFAULT]$Shows a dialog to pass an arbitrary string.
You can optionally specify prompt text and the default value separated by colons, for example: $Prompt:Username:Alice$
Share