nikhilkalige / docblockr

DocBlockr is a package for Atom which is designed to make writing documentation faster and easier.
MIT License
405 stars 93 forks source link

Do not continue comments after newline! #351

Open DamynChipman opened 3 years ago

DamynChipman commented 3 years ago

I love using docblockr, it speeds coding up significantly. However, what does not speed things up is hitting enter after writing a comment, and having to erase the automatically inserted comment characters.

I know with docblockr, if I use after creating a comment, the next line is a normal code editing line. However, it is much more common for me to need code lines after a comment instead of a new comment line (for this, I just use multiline comments anyways...).

Is there a way (or potential future update) to have the user toggle this behavior?

audreyseo commented 3 years ago

This does not answer your question, but you can use shift-enter to not continue the comment and avoid deleting the characters, see documentation here under “Comment Extension”. It’s been a while since I’ve developed on docblockr but if other people think it’s worth it to add a way to disable single line comment extension (and it’s not already a feature slated to be added), then I would not be opposed to adding this and submitting a pull request.