Suggestion drop-down not understanding opening tag (Laravel view)
I suppose this could apply to any language like this, but when I go to close a PHP @ tag in Laravel view HTML by typing `@end`, the drop-down suggestions start at the first alphabetical suggestion (and I appreciate it being alphabetical, thank you), not the one that matches the opening tag:

As you can see, `@endif` is way down the list:

I'm not understanding the logic here; the previous opening tag is `@if`, so typing `@end` should have `@endif` auto-selected (and vertically centered in the alphabetical list box) because it's a perfect match.
Is this a bug or an oversight or a backlog thing?
I'll be glad when this works intelligently, which will save me a lot of keystrokes, especially considering my belief that if I can conceive of logic functionality, it can be coded to happen.
Thanks.
Please sign in to leave a comment.
Try typing @end and then hitting ctrl+space - this would reorder the completion results, at least for me.
After selecting @endif for a few times IDE started to suggest it correctly:
I tried that and the result is just as nonsensical:
It does change the list order, but in this case it thinks I'm trying to close the parent `@section` and not the `@foreach` that I'm already in. There's already a `@endsection` afterword.
There are no other options to adjust, unfortunately. You can submit this issue to our tracker at https://youtrack.jetbrains.com/newIssue.