CakePHP的Eclipse PHP格式化程序

时间:2017-05-19 18:17:05

标签: eclipse cakephp formatter convention

在Eclipse中

在Window-> Preferences-> PHP-> Code Style-> Formatter

我想导入 CakePHP 而不是 PHP ,但我还没有找到 XML 格式的文件。

enter image description here

我很高兴感谢你。

它应该是这样的xml文件:

2 个答案:

答案 0 :(得分:2)

请参阅:https://book.cakephp.org/3.0/en/contributing/cakephp-coding-conventions.html

CakePHP鼓励您使用PSR-2进行编码,它应该已经包含在Eclipse中。此外,CakePHP附带.editorconfig文件,根据您的IDE设置,该文件可以包含在内,可以为您提供帮助。

答案 1 :(得分:0)

转到editorconfig_plugin_Eclipse寻找Eclipse插件。

转到editorconfig_demo进行简短的演示幻灯片演示,您可以找到相关信息。

转到editorconfig_example获取GitHub上的示例CakePHP编辑器文件。

转到editorconfig_tutorial获取编辑器文件中的视频教程(分3部分),您也可以找到它。

总而言之,我认为Eclipse社区仍在等待满足您需求的CakePHP格式文件,可以将其放入Eclipse环境中。