PhpStorm 8:重置特定文件的文件类型 [英] PhpStorm 8: Reset file type for a specific file
问题描述
我在PhpStorm 8中创建了一个文件,意外地创建了一个没有".php"扩展名的文件,现在即使我将扩展名更改为.pphStorm,它也拒绝将其识别为PHP文件,语法高亮,自动完成等. php ...
I created a file in PhpStorm 8, accidentally creating it without the ".php" extension, and now PhpStorm refuses to recognise it as a PHP file, or syntax highlight, autocomplete, etc, even after I changed the extension to .php...
我尝试删除文件并重新创建它,通过文件"菜单使高速缓存无效,删除项目中的.idea文件夹,然后删除整个项目并将其再次从我的Git服务器中拉出,但是PhpStorm仍然拒绝确认即使它是第一次尝试以.PHP扩展名创建,也可以将它作为PHP文件.
I have tried deleting the file and recreating it, invalidating the cache through the File menu, deleting the .idea folder in the project, and deleting the whole project and pulling it from my Git server again, but PhpStorm still refuses to acknowledge it as a PHP file, even after multiple attempts to create it with the .PHP extension first time.
推荐答案
设置(在Mac上为首选项)|编辑器文件类型|文本文件
在此处查找并删除不需要的图案
Find and remove unwanted pattern there
这篇关于PhpStorm 8:重置特定文件的文件类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!