-
-
Notifications
You must be signed in to change notification settings - Fork 486
Setting up WordPressCS to work in Atom
jrfnl edited this page Aug 20, 2023
·
1 revision
- Install PHP_CodeSniffer and the WordPress Coding Standards per the installation instructions for a global install in the readme.
- Install linter-phpcs via Atom's package manager.
- Run
which phpcs
to get yourphpcs
executable path. - Open the linter-phpcs package settings; enter your
phpcs
executable path and one of the coding standards specified above (e.g.WordPress
, etc.). - Below these settings find the Tab Width setting and change it to
4
.
- Note that certain items within PHPCS config file can cause linting to fail, see linter-phpcs #95 for more details.