SUGGESTION: Code Folding showing comments

Make a request or discuss new features.
Post Reply
User avatar
yereverluvinuncleber
Posts: 243
Joined: 20 Apr 2018 09:49

SUGGESTION: Code Folding showing comments

Post by yereverluvinuncleber » 04 Jun 2019 08:48

When you fold code, folding a routine or function there is a rather useful facility I'd like to suggest. An option to fold code whilst retaining its comments on the folded line.

VB6 example code:

Image

When folded becomes:

Image

A possibility might be to add a specific character or string to a comment just as some IDEs have TODO or NOTE as keywords to generate to-do lists this time it causes the comment to appear on the folded line. Some comments can be very verbose and we may not want all comments to appear or it could be a simple exclusion by addition of '#' to the comment.

Something to think about.
Last edited by yereverluvinuncleber on 11 Jun 2019 00:29, edited 2 times in total.
Noli pati a scelestis opprimi...

You can find me on Deviantart https://www.deviantart.com/yereverluvinuncleber/gallery/

User avatar
yereverluvinuncleber
Posts: 243
Joined: 20 Apr 2018 09:49

Re: REQUEST: Code Folding showing comments

Post by yereverluvinuncleber » 10 Jun 2019 18:45

Any thoughts on this?
Noli pati a scelestis opprimi...

You can find me on Deviantart https://www.deviantart.com/yereverluvinuncleber/gallery/

User avatar
Rickard Johansson
Site Admin
Posts: 5787
Joined: 19 Jul 2006 14:29

Re: REQUEST: Code Folding showing comments

Post by Rickard Johansson » 10 Jun 2019 19:55

I'm not fond of the idea. You could just add a comment above the function. Which I think would be much more helpful than any comments inside the function...

User avatar
yereverluvinuncleber
Posts: 243
Joined: 20 Apr 2018 09:49

Re: REQUEST: Code Folding showing comments

Post by yereverluvinuncleber » 10 Jun 2019 20:10

Just a thought, I've seen it as an option in a VB IDE that is being developed now and it struck me as a potentially useful feature for some who don't add comment headers to their functions.
Noli pati a scelestis opprimi...

You can find me on Deviantart https://www.deviantart.com/yereverluvinuncleber/gallery/

Post Reply