[英]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 我希望为Laravel Blade视图向phpStorm添加一些自定义自动补全功能,但是我在文档中找不到任何相关内容
Specifically, I want it to append the section closing when I type @section('secName'). 具体来说,当我键入@section('secName')时,我希望它附加该节的结尾。
So, typing 因此,输入
@section('mySection')
phpStorm would auto-append phpStorm会自动添加
@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. 我知道实时模板,但这并不完全相同。
you can create new Live Template on phpStorm! 您可以在phpStorm上创建新的实时模板! with Applicable is "Everywhere" 适用于“无处不在”
@section('$CONTENT$')
$END$
@stop
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.