How can I add volt syntax checking in PHPStorm

旧街凉风 提交于 2019-12-20 08:56:14

问题


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.




回答2:


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



来源:https://stackoverflow.com/questions/17576146/how-can-i-add-volt-syntax-checking-in-phpstorm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!