PHP-CS-Fixer config file path
を設定し、PHP-CS-Fixerのdocumentationウェブサイトで定義されているようにsetIndent()
の値を設定することができます。
See image for Atom package settings
このようなもので.php_cs
を設定します。 ->setIndent(" ")
には、\t
文字の代わりに2つのスペースが含まれています。
<?php
/*
* This file is part of PHP CS Fixer.
* (c) Fabien Potencier <[email protected]>
* Dariusz Rumiński <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
$header = <<<'EOF'
This file is part of PHP CS Fixer.
(c) Fabien Potencier <[email protected]>
Dariusz Rumiński <[email protected]>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
EOF;
return PhpCsFixer\Config::create()
/* ... other settings */
->setIndent(" ")
/* ... other settings */
ここではphp-cs-fixer
プラグインバージョン4.1.0を使用しています。
あなたが試したことのいくつかの例を挙げてください。コミュニティがあなたの努力を繰り返さないように助けます。 – muglio
私が試した唯一のことは、BeatifyのAtom設定の "Fixers"フィールドに '-indentation'を追加することでphp-cs-fixerのインデントチェックを止めることです。これはAtomの使用方法には影響しないようですツール。 –