您现在的位置是:首页 > PHP框架交流PHP框架交流
phpstorm 新建php文件显示为文本 不提示php语法
上善若水2022-02-14 22:35:38【PHP框架交流】
2795人已围观
简介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调用
相关文章
随机图文
ThinkPHP6 session过期时间怎么设置 修改session默认过期时间
ThinkPHP6已经使用了一段时间,就是发现session特别容易过期,刚登陆不就就要重新登录,需要修改session过期时间,默认过期时间实在太短,不能忍,看看在哪修改session的过期时间吧!抖音笑话段子撩人套路
1、从今日开端我茹素,由于你是我的菜 2、你晓得泰语 撒那嘿呦是甚么意义吗? 我爱你 我也是 3、我觉得你今日怎样这么怪啊? 那里怪了? 怪好看的!! 4、美男,跟你问一下,那条路怎样走? 哪条路? 通往你内心的路 5、你有舆图吗? 怎样了? 我在你的眼睛里迷路了 6、哎,给你看一个美男? 甚么?_? 拿镜子照向她 7、你能够帮我洗个工具吗? 洗甚么? (洗)喜好我 8、你会模拟啄木鸟吗 会啊 来,把我的脸当作树 9、女:小哥哥,小哥哥,给你个工具你要吗? 男:甚么呀一个让人瞬间爆笑的笑话
1、有一个女孩子平常被妈妈管的很严。有一次被男朋友叫去看电影,临出门时妈妈嘱咐说:“出去要放聪明点不要被男人占了便宜,如果他摸你上面你就说不要,摸你下边你就说停。”女孩说记住了,晚上回来她妈问她有没有被占便宜,女孩哭着说:“占了,他上下一起摸我,我就照你教的说:不要停,不要停。 2、幸福就是痒的时候挠一下,不幸就是痒了但挠不着,更不幸的是,很久以来灵魂和肉体都感觉不到那种蠢蠢欲动的痒了。 3、有什么不懂的,尽管吻我就好了
1、有什么不懂的,尽管吻我就好了。 夸女孩的句子:(不要再说beauty了) pretty girl(漂亮女孩) lovely(美女、美人、佳人) looker(大美人) charming(迷人的) dream girl(梦中情人) attractive(妩媚动人) gorgeous lady(大美女) beller(最美的美女) peri(仙女) 2、说正事儿,你最近是在减肥吧,我有一个办法可以让你立马瘦两斤。什么办法?把你的心放我这里。 赠送一段酷酷的句子: 我还在努力,你千万不要喜欢上别人