Programmatically select code style


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.



1 comment
Comment actions Permalink

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


Please sign in to leave a comment.