Nick Brown
Nick Brown

Reputation: 1167

phpStorm adding custom code completion

I was hoping to add some custom auto-completion to phpStorm for Laravel Blade views, but I couldn't find anything about it in the documentation

Specifically, I want it to append the section closing when I type @section('secName').

So, typing

@section('mySection')

phpStorm would auto-append

@stop

Much like when you type

<p>

you end up with

<p></p>

I didn't see it in the documentation. I know about Live Templates, but that's not exactly the same.

Upvotes: 0

Views: 3200

Answers (2)

Tấn T&#226;m
Tấn T&#226;m

Reputation: 130

you can create new Live Template on phpStorm! with Applicable is "Everywhere"

@section('$CONTENT$')
    $END$
@stop

Upvotes: 1

Oldskool
Oldskool

Reputation: 34877

This is currently not yet supported by PhpStorm.

Although, there is a ticket requesting this functionaity in the PhpStorm bugtracker, you can vote for the issue to get it higher on the list.

Upvotes: 3

Related Questions