Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fold down comments (like functions) #416

Closed
MrMrBlackDragon opened this issue Jan 29, 2020 · 2 comments · Fixed by godotengine/godot#49238
Closed

Fold down comments (like functions) #416

MrMrBlackDragon opened this issue Jan 29, 2020 · 2 comments · Fixed by godotengine/godot#49238

Comments

@MrMrBlackDragon
Copy link

Describe the project you are working on:
Nearly any project

Describe the problem or limitation you are having in your project:
When have a comment going over multiple lines it interrupts the code reading flow

Describe how this feature / enhancement will help you overcome this problem or limitation:
If it's possible to fold down like a comment like a function, it would be easier to scroll trough the code.

Show a mock up screenshots/video or a flow diagram explaining how your proposal will work:
So there is a comment to explain your function like this:
grafik
and fold it down like this:
grafik

Describe implementation detail for your proposal (in code), if possible:
n.a

If this enhancement will not be used often, can it be worked around with a few lines of script?:
Something like this would be possible:
grafik
resulting in:
grafik

Is there a reason why this should be core and not an add-on in the asset library?:
Is see no way how this could be implemented as an asset. Furthermore it's usefull for every project

@Calinou
Copy link
Member

Calinou commented Jan 29, 2020

See also godotengine/godot#27488.

I think a simple way to handle this would be to allow folding every series of comment lines (of at least 2 lines). If this shows too many folding buttons, we can limit folding to series of 3 lines or more.

@Feniks-Gaming
Copy link

We could close my issue and stay with this one instead as is better presented. @Calinou feel free to close the one I made. I agree folding comments would be great help for documenting inside the function.

It can be somewhat faked by having multiplier strings instead of comments but it's not ideal.

1

2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants