I can be very lazy… So Sublime Text’s snippets are one my best coding friends. Sublime text provide some who are very interesting, but I’m not happy with the default echo.
There is no parentheses, and as echo is a function, I prefer to use it, as a function. A function have parentheses.
With this one, just by typing echo + Tab in, per exemple, HTML files, or HTMl blocks in my PHP files, Sublime Text will insert a full <?php echo(); ?> with parentheses, and place the cursor inside them.
The Sublime Text snippet
<snippet> <content><![CDATA[ <?php echo( $1 ); ?> ]]></content> <tabTrigger>echo</tabTrigger> </snippet>
React to this article!
Did I miss something? I'd really liked to know your though about this.
If you like this article, please 📣 share-it!