Skip to content

Autofill documentation comment block when returning to a new line #8244

@Cronos87

Description

@Cronos87

Describe the project you are working on

This feature can be helpful in any project.

Describe the problem or limitation you are having in your project

When writing documentation for my functions or variables, I often go to a new line, which requires adding ## again every time I go to a new line.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

It would be lovely to detect if the user is on a documentation line and prefill with "##" when returning to a new line like VSCode.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Here is an example on how it is working on VSCode:

CleanShot.2023-10-24.at.11.42.45.mp4

If this enhancement will not be used often, can it be worked around with a few lines of script?

I don't know enough addons to judge if it can be achieved using an addon.

Is there a reason why this should be core and not an add-on in the asset library?

Performances issues. Because I can't determine if an addon can do it or be as fast as the native Godot language.

It seems more "logical" that the editor includes it by default than an addon; more users would be positively impacted.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions