您现在的位置是:首页 > PHP框架交流PHP框架交流
phpstorm 新建php文件显示为文本 不提示php语法
上善若水2022-02-14 22:35:38【PHP框架交流】
2811人已围观
简介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调用
相关文章
随机图文
git 分支开发dev,release本地提交代码总结
git分支是个好东西,可以在自己分支上开发,然后将代码合并到其他分支上便于管理,首次接触分支还是有点迷糊,结合公司代码提交规范,自己回现公司代码提交规范,理清楚的话其实还是蛮简单的.首先准备一个码云仓笑话15则,总有一则逗笑你!
1、地上有一张50元,一张100元,你会捡哪张?答:当然100的那张呗.... 2、在街边报亭买烟,“其他地方都卖21块,为什么你这里要卖23?”我质问老板。 “小伙子,我看你长得帅,收多你两块钱很过分吗?” 这个怎么应付,我得想想!!! 3、高考查成绩的时候,我直接被大专录取了! 于是老爸一高兴,就直接送了辆玛莎拉蒂给我。 开学后我开着玛莎拉蒂上学,室友们第一次见名车。 很激动,纷ThinkPHP6.0 数据集
数据集模型的select查询方法返回数据集对象 think\model\Collection,该对象继承自think\Collection,因此具有数据库的数据集类的所有方法,而且还提供了额深圳市九州电子有限公司php面试2022.04
深圳市九州电子有限公司公司是离职以来的首次面试,公司再离世界之窗两三站地铁,算是小公司,最近一直游玩,逃避面试,总之还得去,多面面找找感觉感觉吧.公司再6楼,办公地点不是很大.面试的话就一道类似屏风的