I'm using PhpStorm 5.04. When editing PHP or JS, pressing enter within a comment that doesn't start at the beginning of a line, puts the cursor at the beginning of the next line. Is this is by design, configurable, a bug, or would it be a feature request? (I looked through the config settings, searched Google, and searched the forums, but didn't see anything.)
Here's visually what I mean. Editing PHP, let's say things look like this. The underscore shows where the cursor is.
protected $foo; // this is the description of_
Pressing enter moves the cursor to next line, indented, but "at the beginning":
protected $foo; // this is the description of
Using /* */, starting with this:
protected $foo; /* this is the description of_
protected $foo; /* this is the description of
In JS, // comments work the same way, but for /* */ comments, the editor doesn't enter the * on the next line and the */ on the line after.
(I can kind of understand the current behavior using // comments, because there's no way to know if the user wants to continue the comment or if the comment is done and the next line will be code. But I would think that /* */ comments would be aligned in PHP and automatically closed in JS...)