Reputation: 2577
After the update, I updated about 7 packages - including Atom - right now when I write php
and hit tab inside a blade file (Laravel), it's expanded into
@php
@endphp
however, what I want is
<?php
?>
How to do that?
Which file should I edit to get it back? I have looked into
snippets.cson (Edit -> Snippets...)
But this file is empty - contains only a comment with info how to create a snippet.
Upvotes: 3
Views: 332
Reputation: 12882
The file snippets.json
is empty by default. Adding your own snippets should override those that come with packages. It should look something like this:
'.text.html.php.blade':
'<?php … ?>':
'prefix': 'php'
'body': '<?php $0 ?>'
Optionally, you can add line-breaks, e.g. 'body': '<?php\n\t$0\n?>
'.
Upvotes: 2