Invoking format action from custom action

I've started writting my first plugin which only does contain a simple action which modifies a XML file. I would like to invoke the "Reformat Code..." on the modified file to respect user settings related to formatting code/file/text. Would it be possible? Or are actions only invokeable by the user?

1 comment
Comment actions Permalink

Yes, use CodeStyleManager.getInstance(project).reformat / reformatText

0

Please sign in to leave a comment.