V
V
Victor2016-03-05 10:09:58
phpstorm
Victor, 2016-03-05 10:09:58

Can PhpStorm highlight alternative PHP syntax?

PHP has an alternative syntax for the if/else, for/foreach constructs, where the beginning and end of the block are distinguished not by curly braces, but by the words endif/endfor/endforeach.
Tell me, is it possible to configure PhpStorm so that when you click on endif, it shows the opening if on top, as it does in the case of curly braces?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MaxTD, 2018-03-05
@v_decadence

Became possible since version 2017.1.
Activated via the Help menu:
Find Action->Registry->php.brace.alt.syntax.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question