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

Feature: Auto format on save option #690

Closed
2 tasks done
AhmedAdel991 opened this issue Dec 20, 2024 · 4 comments
Closed
2 tasks done

Feature: Auto format on save option #690

AhmedAdel991 opened this issue Dec 20, 2024 · 4 comments

Comments

@AhmedAdel991
Copy link

Type of feature

✨ Feature

Current behavior

Currently there is no option to enable auto format on save

Suggested feature

Add a checkbox in the options panel to enable auto format on save

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Contributing Docs

  • I agree to follow this project's Contribution Docs
@AhmedAdel991
Copy link
Author

Sorry, I just noted the format option has a shortcut which makes this feature obsolete.

@hatemhosny
Copy link
Collaborator

hatemhosny commented Dec 20, 2024

Thank you @AhmedAdel991

There is indeed a "Format On-save" option, which you can find in the settings menu. It is disabled by default. But once you enable it, the setting will be remembered across your sessions.

Please note that format on-save will not be triggered automatically if you enable "Auto Save" unless you manually save the project (e.g. from project menu or the shortcut Ctrl + S)

image

And yes, the keyboard shortcut "Alt + Shift + F" triggers code format :)

Please let me know if you have any other questions or comments.
Thank you.

@AhmedAdel991
Copy link
Author

Thanks DR. @hatemhosny for your great work, no that would be all shall I close the issue?

@hatemhosny
Copy link
Collaborator

Thanks DR. @hatemhosny for your great work, no that would be all shall I close the issue?

You are most welcome.
Yes, please, you may close this if you have no further inquiries.

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

No branches or pull requests

2 participants