在PHPStorm中将CTP文件显示为PHP文件 [英] Display CTP Files as PHP Files in PHPStorm

查看:105
本文介绍了在PHPStorm中将CTP文件显示为PHP文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在CakePHP上运行的项目.我所有的视图都存储为ctp文件.如何呈现ctp文件,以使我具有与以PHP文件形式存储的文件相同的视觉格式?在Notepad ++中,我可以通过从语言"工具栏选项中进行选择来做到这一点. PHPStorm中有类似的功能吗?

I have a project running on CakePHP. All of my views are stored as ctp files. How do I render my ctp files so I have the same visual formatting that's present when I look at a file that is stored as a PHP file? In Notepad++, I was able to do this by selecting from the 'Language' toolbar option. Is there a similar feature in PHPStorm?

推荐答案

File | Settings | 文件类型,将此扩展名分配给PHP Files.

File | Settings | File Types, assign this extension to the PHP Files.

这篇关于在PHPStorm中将CTP文件显示为PHP文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆