I want to create Live Template in PhpStorm. I pasted this code as a template.
ob_start();
var_dump( $END$ );
$imp_to_file = ob_get_clean();
file_put_contents('/var/www/Test/test.txt', $imp_to_file);
But when I try to reproduce this template in my code I got cursor in this position:
ob_start();
var_dump()[cursor here];
$imp_to_file = ob_get_clean();
file_put_contents('/var/www/Test/test.txt', $imp_to_file);
When I removed spaces around $END$
and paste like this
ob_start();
var_dump($END$);
$imp_to_file = ob_get_clean();
file_put_contents('/var/www/Test/test.txt', $imp_to_file);
all works fine, but I need those spaces.
Please let me know what can I do here?