How can I add volt syntax checking in PHPStorm

后端 未结 2 905
自闭症患者
自闭症患者 2021-01-31 14:41

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

Is there a way to do so?

相关标签:
2条回答
  • 2021-01-31 15:22

    Right click on a .volt file in the project tab. Click on associate with a file type. Choose twig.

    0 讨论(0)
  • 2021-01-31 15:26

    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.

    0 讨论(0)
提交回复
热议问题