Godot-proposals: Enhance editor line length guide

Created on 2 Jan 2020  路  2Comments  路  Source: godotengine/godot-proposals

Describe the project you are working on:

Breakout Clone

Describe the problem or limitation you are having in your project:

Currently Godot offers only one line guide that user can defined in settings by default set to 80 right now. This is great but sometimes it is beneficial to have more than one line guide many users will use something like soft limit and hard limit. Users will aim for majority of their code to don't extend over soft limit but will allow it at occasions. On the other hand the will never cross hard limit

Describe how this feature / enhancement will help you overcome this problem or limitation:

It's fairly simple but will improve usability of the editor

Show a mock up screenshots/video or a flow diagram explaining how your proposal will work:

Here is example how atom does it
1

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

I can imagine this as just replicating whatever code is used to create Line Length Guideline Column and giving it different value maybe allowing users to create more guildelines as they please?

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

It would can be worked around by simply visually seeing code being roughly the desired length but it's nice to have

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

It's part of a main editor and fairly easy to do.

editor

Most helpful comment

It makes sense to add a way to display 2 line length guidelines (soft + hard), but more than 2 guidelines sounds overkill to me.

All 2 comments

It makes sense to add a way to display 2 line length guidelines (soft + hard), but more than 2 guidelines sounds overkill to me.

2 is enough I agree.

Was this page helpful?
0 / 5 - 0 ratings