Sublime Forum

Auto-insert comment on return

#1

Vim has something that I can’t find in Sublime Text so far: auto-wrapping comments on Return, so that the comment leader is inserted automatically. Am I missing something?

0 Likes

Comment continuation in Python
#2

Not sure if I understand what you mean exactly but try DocBlockr plugin maybe.

0 Likes

#3

In vim, if you type:

// This is the first line of the comment

and hit at the end, it’ll add a line and automatically insert "// " at the beginning so you can keep adding to the comment.

0 Likes

#4

Pretty sure DocBlockr does that.

0 Likes

#5

Did not work for me in DocBlockr but https://github.com/Suor/CommentsAwareEnter works.

(Posting in case someone also arrives here through search.)

0 Likes