Sublime Forum

Auto-Indent Issue In Dev 2178

#1

I’m still running into a minor, but annoying auto-indent issue in build 2178 in PHP. When using the “doc block” snippet (/** [tab]) to document functions, the doc block is created correctly and with the correct indention, but when I press enter, the cursor is not placed under the asterisks, but rather under the slash, so you would end up with something like this:

[code]<?php

class Something {

/**
 * Do stuff.
*  This asterisk is under the slash, when it should be under the "Do Stuff" asterisk.
 */
public function do_work()
{

}

}[/code]

This was not the case in previous dev builds (2171 for sure). It is slightly annoying as I have to keep adding a space to get the asterisk in the correct location. Thanks for all of your hard work on ST!

0 Likes

#2

(not so subtle self-plug): You could use the DocBlockr plugin github.com/spadgos/sublime-jsdocs#readme

0 Likes