Programmatically activate "reformat code" option in commit dialog?
Answered
Hi,
my plugin should activate the options "reformat code" and "optimize imports" in the commit dialog. Is there an API for that? I guess it is saved somewhere in the .idea files in the project and I could add it there. But maybe there is an easier / saver way?
Please sign in to leave a comment.
Currently these are project settings. And programmatically you can access them through `VcsConfiguration.REFORMAT_BEFORE_PROJECT_COMMIT` and `VcsConfiguration.OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT`.
Perfect, thank you!