Change default settings of PhpStorm.
File -> Default settings -> Editor -> Code Style -> PHP
Drupal recommends less than 80 characters per line.
Set "Tab size", "Indent" and "Continuation indent" to 2
In this example, we will use a field to get tags list, the number of tags dynamic.
Note : On drupal the best practice is use drupal behaviors but not JS or Jquery codes such as:
<button onclick='myFunction()'>Click</button>