Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
OrganizationAdvent CalendarQiitadon (β)
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

VSCode の php-cs-fixer で使っている設定


PHP を VSCode を使用して開発する事がことが多く、

  "php-cs-fixer.onsave": true,
  "php-cs-fixer.executablePath": "${extensionPath}/php-cs-fixer.phar",
  "php-cs-fixer.lastDownload": 999999999999999,
  "php-cs-fixer.rules": {
    "@PSR2": true, // PSR-2 Coding Style Guide に即した形式にフォーマットする
    "no_unused_imports": true, // 使用していない use 句を削除する
    // "ordered_imports": true, // use 句をアルファベット順にソートする
    "array_syntax": { "syntax": "short" }, // 配列の定義方法を短縮形(例: $hoge = [];)にする
    "single_quote": true
  "[php]": {
    "editor.defaultFormatter": "junstyle.php-cs-fixer"
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away