Sublime Forum

Comment continuation in Python

#1

I’d like to be editing a comment in Python:

# this is my comment

then hit enter, and get a comment and indentation at the beginning of the new line:

# this is my comment
# <---- this gets added automatically

A similiar question is here:

But DocBlockr doesn’t list python as supported. It does seem to work, however, when installed if I use two spaces after my hash symbol, but I’d prefer to use one space.

0 Likes

#2

In case someone also finds this with a search engine in the future https://github.com/Suor/CommentsAwareEnter works great.

0 Likes