Coding editor setup

PHPStorm

Plugins

PHPfmt

  • Download file fmt.phar

https://www.dropbox.com/s/3jipogskc38gdg8/fmt.phar?dl=0

If you cannot install the plugin, try the File Watcher method:

Argument: 

/path/to/fmt.phar --indent_with_space=4 --enable_auto_align $FilePath$

JS Prettier

  1. Install
  • In the embedded Terminal (Alt+F12), type one of the following commands:

npm install --save-dev --save-exact prettier

npm install --global prettier

  1. Setting
  1. Autoformat on save

Visual studio code

Plugins

phpfmt – PHP formatter – Visual Studio Marketplace

Prettier – Code formatter – Visual Studio Marketplace

Leave a Reply 0

Your email address will not be published. Required fields are marked *