Programmatically activate "reformat code" option in commit dialog?
已回答
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?
请先登录再写评论。
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!