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?

0
2 comments
Avatar
Permanently deleted user

Currently these are project settings. And programmatically you can access them through `VcsConfiguration.REFORMAT_BEFORE_PROJECT_COMMIT` and `VcsConfiguration.OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT`.

0
Avatar
Permanently deleted user

Perfect, thank you!

0

Please sign in to leave a comment.