title: Horizontal list to vertical list and vice versa - IntelliJ IDEA based IDE
body: <p>Is there keyboard shortcut to convert horizontal list to vertical list and vice versa in IntelliJ IDEA and based on it IDE PhpStorm? For example I have array</p>
  
  <pre><code>$arr = [
      'test',
      'a' =&gt; 'b',
  ];
  </code></pre>
  
  <p>and I want to make it single-line, I can select text and use <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>J</kbd>, I get</p>
  
  <pre><code>$arr = ['test', 'a' =&gt; 'b', ];
  </code></pre>
  
  <p>it is almost good, I can remove last <code>,</code> manually. But how to make the opposite: convert horizontal list to vertical? It is not only about arrays, this question is also about function signatures for example</p>
  
  <pre><code>public function test($arg1, $arg2, $arg3, $arg4)
  </code></pre>
  
  <p>and function calls</p>
  
  <pre><code>test($arg1, $arg2, $arg3, $arg4);
  </code></pre>
  
  <p>sometimes string become too long and it is needed to split it for readability like this:</p>
  
  <pre><code>test(
      $arg1,
      $arg2,
      $arg3,
      $arg4
  );
  </code></pre>
  
  <p>Note that this question is not about code folding, I want to really change formatting, not just show-hide just for me.</p>