Hi,
I’m using CodeMirror v6 and I’m having a problem with commenting folded code.
If the code is folded and the cursor is on the first line of the code, when I use CMD + / to add a comment, it only adds a comment to the last line of the folded code. I can see this when I expand the code.
The expected IDE behaviour for adding comments to folded code is for every single line in the fold to have a comment.
I can achieve this only if I highlight the folded code first, but this is not the expected behaviour.
I’ve read countless things online about possibly using a custom extension or mode to do this, but I don’t know where to start.
Could anyone please point me in the right direction?
Thanks,
Josh