You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
theprash
changed the title
Enable or disable "Format on save" per project
Enable or disable "Format on save" per repo
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
The text was updated successfully, but these errors were encountered: