How can I collapse multiple comment lines which don't have a comment block?

Hi,

I've got stored procedures with lots of comment lines in them but all those comment lines are just started with “--” and don`t use comment blocks. Datagrip doesn't allow me to collapse those blocks.
Even if it was possible to manually select a few lines and then explicitly collapse them, it would be too tedious to do this every time I want to (re-)collapse a comment block (which doesn't use comment block style).

Do I miss something or is this a feature request?

Regards
Nianiter

0

The function for “Collapse Docs Comment” doesn't work on multiline comments which aren't using multiline style commenting.

Custom Folding regions would probably work but are too much effort to manually mark all the comment sections. I have over 2000 stored procedures and each of them has multiple of such comment regions. Before I start marking all of them manually, I'll just forget it at all.

Regards

0

Or at worst I'll start working on it in Visual Studio, as such a function is available there.

0
We have a feature request for collapsing single line comments

https://youtrack.jetbrains.com/issue/DBE-23086/Allow-collapsing-single-line-comments

Please upvote and follow this issue to stay updated on the current status
1

请先登录再写评论。