Programmatically select code style

Hi,

I was wondering if there is any plugin api to select the code style that was already placed under e.g. ~/Library/Preferences/IdeaIC15/codestyles/java_style.xml in OSX? Or better, api calls to import the xml then select it?

Right now IntelliJ can see the code style file (shows up as 'twitter' in the attachment), but still requires manual selection to activate.

Thanks,
Yi

 

0

See com.intellij.psi.codeStyle.CodeStyleSchemes or corresponding class for above dialog com.intellij.application.options.codeStyle.ManageCodeStyleSchemesDialog

0

请先登录再写评论。