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

Auto-Format Functionality #1757

Closed
RilDev opened this issue Nov 1, 2020 · 2 comments
Closed

Auto-Format Functionality #1757

RilDev opened this issue Nov 1, 2020 · 2 comments

Comments

@RilDev
Copy link

RilDev commented Nov 1, 2020

Describe the project you are working on: I'm working on a project using scripts.

Describe the problem or limitation you are having in your project: There is no auto-format functionality in Godot yet.

Describe the feature / enhancement and how it helps to overcome the problem or limitation: A PEP 8 style auto-formater would improve the quality of the code base. Here is a link to the docs: GScript Style Guide

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams: Ideally, there would be an option to check in the editor settings if we would like to auto-format on save, and the possibility to press ctrl + f to format the current script at any time.

If this enhancement will not be used often, can it be worked around with a few lines of script?: This enhancement would be used all the time, by many users!

Is there a reason why this should be core and not an add-on in the asset library?: Well, it could be an add-on. But this functionality is so basic that it should definitely included in Godot's core.

@Calinou
Copy link
Member

Calinou commented Nov 1, 2020

Duplicate of #1200.

@RilDev
Copy link
Author

RilDev commented Nov 1, 2020

Yes I just noticed it! Thanks for the quick feed-back!

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

No branches or pull requests

2 participants