当前位置: 首页 > 工具软件 > php.fmt > 使用案例 >

PHPfmt代码格式化

高嘉熙
2023-12-01

步骤:

  1. 安装插件 phpfmt
  2. 粘贴到Preferences-->Package Settings-->phpfmt->Settings User
{
    "format_on_save": true,
    "php_bin": "/usr/local/Cellar/php70/7.0.19_11/bin/php",
    "version": 1,
    "indent_with_space": true,
    "enable_auto_align": true,
    "psr1": true,
    "psr1_naming": true,
    "passes":
    [
        "MergeElseIf",
        "AlignEquals",
        "AlignDoubleArrow",
        "AlignConstVisibilityEquals",
        "AlignPHPCode",
        "ShortArray"
    ],
}

转载于:https://www.cnblogs.com/one-villager/p/7538120.html

 类似资料: