您现在的位置是:首页 > PHP框架交流PHP框架交流
phpstorm 新建php文件显示为文本 不提示php语法
上善若水2022-02-14 22:35:38【PHP框架交流】 2106人已围观
简介phpstorm 新建php文件显示为文本 不提示php语法 跟显示txt文本文件一样 不提示任何语法 不变任何颜色 把文件删除 重新建还是一样 默认一文本方式打开 终于找到方法解决.1.首先在设置中
phpstorm 新建php文件显示为文本 不提示php语法 跟显示txt文本文件一样 不提示任何语法 不变任何颜色 把文件删除 重新建还是一样 默认一文本方式打开 终于找到方法解决.
1.首先在设置中排除
Settings → Editor → File Types→ Text
For OS X
Preferences → Editor → File Types→ Text
发现在Text列表中 没有要找到的文件. 将显示类型出错的PHP名字添加进列表 提示 phpstorm file type auto-detected by file content
点击左边重置 然后将刚才添加到php文件删掉解决问题.
2.方式二 若提示上面的提示可以按照官方文档提示操作
网上一般是按照方式一解决问题 但是方式二实际上更快!
ssociate a filename pattern with specific file type
If PhpStorm cannot identify the type of the file that you are trying to open or create, it displays the Register New File Type Association dialog where you can choose the way you want to process this file.
If the dialog doesn’t appear automatically, right-click the file in the Project tool window and select Associate with File Type from the context menu or choose File | File Properties | Associate with File Type from the main menu.
In the Register New File Type Association dialog, select the necessary options:
PhpStorm: Associating a filename pattern with specific file type
From the File pattern list, select whether you want to specify a type for the current file (file.extension) or for all files with this extension (*.extension).
Select one of the following options:
Open matching files as text and auto-detect file type by content: open the file without an extension as a text file and identify its type by the content, for example, by the shebang line.
Open matching files in PhpStorm: associate the file with one of the existing file types. You can change this association later in the settings.
Open matching files in associated application: open the file in the default system application configured in your operating system. For example, .pdf files are opened in the default PDF viewer.
If necessary, you can check and configure all filename patterns associated with system applications.
Click OK to apply the settings.
很赞哦! (1)
上一篇: 理解yii自动加载机制 yi框架自动加载
下一篇: php yar扩展实现rpc调用
相关文章
随机图文
-
PHP8.1新特性 初始化器
初始化器新版写法 class Service { private Logger $logger; public function __construct( Logg -
怎么跟女生聊天
关于跟女生聊什么,这个千古难题困扰了无数男同学,今天我带着使命来拯救各位!首先大家想思考一下,你为什么没有话题跟女生聊?是自己直男吗?还是自己太过内向?统统都不是!!!最重要的原因就是你肚子里没有货! -
这些哭笑不得的冷笑话,你被哪个逗笑?
1.皮卡丘去找喷火龙借钱,喷火龙不借让他去找杰尼龟,然后杰尼龟说:不借,你是不是以为我只会说杰尼杰尼? 2.我对象说今年过年回家看我父母 象说:不了 3.阿基米德说:给我一个支点,我能用杠杆撬动整个地球! 投资机构:这个三倍杠杆拿去不谢。 第二天,阿基米德发现自己亏了2个地球! 4.“我以前也不懂事,后来被人打了一顿。” “就变懂事了?” “还是不懂事,但不敢嚣张了。” 5.下水 -
composer 制作安装包出现的几个问题的总结
composer 制作安装包出现的几个问题的总结.或许你也会遇到问题. composer安装包制作完成后出现了Could not find a version of package fierykyl