Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
PhpStorm arrow function live template
<template name="fn" value="fn ($TYPE$ $INSTANCE$) =&gt; $INSTANCE$$END$" description="Arrow function" toReformat="false" toShortenFQNames="true">
<variable name="TYPE" expression="completeSmart()" defaultValue="" alwaysStopAt="true" />
<variable name="INSTANCE" expression="concat(&quot;$&quot;, camelCase(TYPE))" defaultValue="" alwaysStopAt="false" />
<option name="PHP Expression" value="true" />
<option name="PHP Statement" value="true" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment