Is it possible to get styler to run and format the code upon saving a file? Thanks.
it's a long standing feature request for RStudio (which you can upvote). To mitigate the problem for now:
- write nice code that does not require {styler}
. - make a keyboard binding to the style active file Addin in {styler}.
- use the {styler} pre-commit hook.
Thank you for the detailed and up-to-date response.