Indentation after a PHPDoc/DocBlock
timkelty opened this issue · 1 comments
timkelty commented
At the end of DocBlocks, pressing return keeps the indentation level because of the leading whitespace before the *. This is annoying because you have to backspace 1 space every time to start your code after the docblock in the right spot.
Sublime Text 2's PHP package works this way (which is what I am now using), but some coworkers are on TM / TM2 and I'm trying to figure out what I need to change to port that change over to the TM/TM2.
For example:
/**
*
* Here's my docBlock
*/[cursor here]
...hit return...
/**
*
* Here's my docBlock
*/
[cursor ends up here, should be back 1 space :(]
Any help would be appreciated!
sorbits commented
FYI this is the same as textmate/c.tmbundle#3 and will require improvements in TextMate’s indenter to skip comments when estimating indent.