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

查看:31
本文介绍了在 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 |设置 |文件类型,将此扩展名分配给 PHP 文件.

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

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

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