How can I add volt syntax checking in PHPStorm

2019-03-09 04:52发布

问题:

I want to be able to have syntax highlighting in PHPStorm for Volt, Phalcon's template engine.

Is there a way to do so?

回答1:

In PHPStorm, click File -> Settings

On the left side of the options click Editor -> File Types

On the list that appears on the right, scroll down and select Twig

In the bottom panel, click the + button to add a new wildcard and add

*.volt

Click OK and then OK again.