使用webstorm时,在打开不常用的后缀名文件时,不能使代码高亮和自动补全。下面是设置方法:
1、打开 file--settings 2、搜索 file type 3、找到 smarty 4、增加一项 ('*.dwt')
ok