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

Enable or disable "Format on save" per repo #39

Open
theprash opened this issue Oct 6, 2022 · 0 comments
Open

Enable or disable "Format on save" per repo #39

theprash opened this issue Oct 6, 2022 · 0 comments

Comments

@theprash
Copy link

theprash commented Oct 6, 2022

Currently, if I enable "Format on save" then this will apply to all repos that I have open. If Fantomas isn't installed on another repo then I get the "Choose install" dialog from F# Formatting. I can click "Skip for now" but it reappears every time I save the file.

When working on multiple repos, sometimes in different teams, the decision to adopt Fantomas needs to be made per-repo. We need to enable format on save for all developers if we decide to use it on a repo, and if we don't use it then we can't have people always reformatting the entire file that they're working on.

I can't currently see a way to enable/disable "Format on save" for a given repo only. So currently that means each developer needs to enable and disable the setting in their editor manually according to the repo. Perhaps I'm missing something?

Maybe the editor extensions should be completely responsible for tracking this configuration per repo, or maybe there should be a change in the Fantomas repo to support this, like a .editorconfig setting that supports this, e.g. fsharp_recommend_format_on_save

@theprash theprash changed the title Enable or disable "Format on save" per project Enable or disable "Format on save" per repo Oct 6, 2022
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