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

Configuration option to "format on save" #987

Open
ian-h-chamberlain opened this issue Oct 21, 2023 · 0 comments
Open

Configuration option to "format on save" #987

ian-h-chamberlain opened this issue Oct 21, 2023 · 0 comments

Comments

@ian-h-chamberlain
Copy link

Similar in spirit to #844 , it could be nice to have automatic formatting whenever the code is "submitted" (i.e. Run / Test / Build etc.), although I think this should probably be configurable in user settings.

One thing that might be tricky is order of operations — The current rustfmt implementation seems to minimize its output after running, which would be fine so long as the subsequent "Run" command showed the output again. If they were run in parallel this might be hard to synchronize, but if Format always ran prior to Run perhaps it wouldn't be an issue.

Possible UI mockup (probably default to DISABLED, to avoid changing behavior from existing):

Screen Shot 2023-10-21 at 9 54 02 AM

Examples in other tools:

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

1 participant