简体   繁体   English

Prettier PHP 带有 sublime 文本编辑器的插件配置

[英]Prettier PHP Plugin congfiguration with sublime text editor

How do you set configuration variables?你如何设置配置变量? I'm able to prettify my PHP code on save, but I have no idea where i should put plugin-specific values as they're defined here https://github.com/prettier/plugin-php#configuration我可以在保存时美化我的 PHP 代码,但我不知道我应该把插件特定的值放在哪里,因为它们是在这里定义的https://github.com/prettier/plugin-php#configuration

Prettier uses cosmiconfig for configuration file support. Prettier 使用 cosmiconfig 来支持配置文件。 This means you can configure Prettier via (in order of precedence)这意味着您可以通过(按优先顺序)配置 Prettier

found the answer here:在这里找到了答案:

https://prettier.io/docs/en/configuration.html https://prettier.io/docs/en/configuration.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM