slysherz / vscode-comment-box

Extension that transforms lines of text into a pretty comment box.
MIT License
19 stars 2 forks source link

Feature request: Remove comment box, or allow adding rows #7

Closed d1820 closed 2 years ago

d1820 commented 3 years ago

Would be very helpful to be able to add new rows to a set of boxed comments and have the extension detect the new rows and just add the delimiters to those rows, or at least remove the existing comment box and regenerate again to account for new rows being added. As of now you can pretty much only use it once, and most documentation grows over time

image

double wraps

image

slysherz commented 3 years ago

Hello, and thanks for the feedback!

I've been looking into this and I think it's very useful, I'll try to add it soon.

There are a few things we can do:

IMO option 3 would be really nice, but it is really hard to implement and super easy to mess up, so I'll leave that for later. Meanwhile, I'll try to implement 1 and 2 and see how it works out.

slysherz commented 2 years ago

I just released the new 2.1 update, with new commands to remove and update comment boxes, enjoy : )

For now you'll have to select all lines to update / remove a comment box - in the future I'll try to make it automatically detect where boxes start and end.