Sublime Forum

Detecting Tabs

#1

I’m very new to Sublime plugin development, so I apologize if this question is rudimentary.

I’m working on a plugin that helps me comment my code, similar to DocBlockr but more specialized for my needs. One of the things I like to do is put an ending comment at the bottom of a function/if statment/for loop. I’ve been able to do this, but I have to put the comment immediately after the ending bracket. I’d like to put it beneath the ending bracket, but respect the tabbing that the bracket had.

So far nothing I’ve done has worked, so I’m caving and asking others for some help.

0 Likes

#2

What have you done so far? If you just insert a newline after the bracket, and you have auto indent turned on, then Sublime will tab for you.

0 Likes