title: PhpStorm: any solution for 4 annoying problems?
body: <p>I'm a rather happy PhpStorm user, but there are a few things that really annoy me, but I'm not a settings expert and wish there is a solution for them (<em>editing PHP files</em>) :</p>
  
  <ul>
  <li><strong>Navigation</strong></li>
  </ul>
  
  <p>Often in the editor, one want to go back to where the cursor was 100 lines above etc... And in PhpStorm Back <kbd>Alt-Shift-Left</kbd> and Forward <kbd>Alt-Shift-Right</kbd> do this - but they follow an algorithm that is beyond me: it definitely misses "steps" (e.g. from line 500 go to line 300 using keys like arrows or -even worse- page-up/down, then <kbd>Alt-Shift-Left</kbd> doesn't bring you back to line 500)</p>
  
  <p>=> Is there a way to refine the conditions that drive the behavior of Back and Forward?</p>
  
  <ul>
  <li><strong>Indentation</strong></li>
  </ul>
  
  <p>Is there a way to refine the <em>indentor</em> behavior? For instance</p>
  
  <pre><code>  $a = array('X' =&gt; 'Something',
               'Y' =&gt; 'Something else',[RETURN]
    ^          ^
   now       there
  </code></pre>
  
  <p>like in <em>Emacs</em> the cursor would go <em>there</em> right under the first quote after the spaces (and not at <em>now</em> where PS goes)?</p>
  
  <p>=> Is a <em>regexp</em> (or something else) able to refine the behavior of the <em>indentor</em>, Not only for this very specific case but for the behavior in general?<br>
  (Not mentioning another problem when <kbd>Shift-Insert</kbd>ing where the indent is often unreliable)</p>
  
  <ul>
  <li><strong>Quotes</strong> (automatic)</li>
  </ul>
  
  <p>I don't want to disable the automatic quoting feature as it is sometimes convenient, but it seems the algorithm doesn't parse correctly the environment where the <code>"</code> or <code>'</code> is inserted (don't have an example right now but at times it was annoying, like inserting 2 <code>"</code> unexpectedly while only one is required, deleting one will actually delete the 2 (normal because they were inserted automatically... but I needed 1 only!) so have in this case to trick PhpStorm to force a 1 <code>"</code>).</p>
  
  <p>=> Is there a <em>regexp</em> or similar to control the quoting behavior?</p>
  
  <ul>
  <li><strong>Select via</strong> <kbd>Shift-Arrow</kbd> (for instance, to delete...)</li>
  </ul>
  
  <p>Almost forgot: PhpStorm remembers at which column the cursor is when navigating Up and Down. Fine. But when one want to select (using <kbd>Shift</kbd> and Up/Down <kbd>Arrows</kbd>) from beginning of line it is usually to select lines. Not a line-to-where-cursor-was-earlier. An example will explain better: <code>*</code> is where the cursor is [beginning of line 3], <code>%</code> is where the cursor <em>was</em> [middle of line 2]</p>
  
  <pre><code> 1.   $x = 'string';
   2.   $y = %'string';
   3.*
  </code></pre>
  
  <p>doing <kbd>Shift-Up</kbd> will select (all <em>s</em>)</p>
  
  <pre><code> 1.   $x = 'string';
   2.   $y = *sssssssss
   3.
  </code></pre>
  
  <p>while in the specific case of a <em>selection</em>, it should select that:</p>
  
  <pre><code> 1.   $x = 'string';
   2.*sssssssssssssssss
   3.
  </code></pre>
  
  <p>not sure there is a way to configure that though - just in case there is?</p>
  
  <p>Thanks</p>