0

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.

2 Answers 2

3

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.

Sign up to request clarification or add additional context in comments.

2 Comments

AH, okay, glad I'm not just crazy and couldn't find it in the menus. Edit: Although this is specific support for Laravel, I just want to be able to add my own custom completion definitions.
@NickBrown seems like your question is answered, please mark it 'answered'
1

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

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.