If your XML is previously exported Intellij you can simply do:

File > Import Settings > select your xml

If its custom defined, one you can try copying your xml to intellij config directory:

config/codestyles

Assuming your xml is in format intellij can understand, it will then show up in

Code Styles > Manage

If your XML is in different format, try to match tags with one of pre-defined styles(also XML)

Answer from hitz on Stack Overflow
🌐
GitHub
github.com › google › google-java-format › issues › 325
Unable to import Code "IntelliJ Java Google Style" · Issue #325 · google/google-java-format
November 29, 2018 - Running into error following the below step -> "The import ordering is not handled by this plugin, unfortunately. To fix the import order, download the IntelliJ Java Google Style file and import it into File→Settings→Editor→Code Style." ...
Author: google
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 206290589-Unable-to-import-a-code-style-xml-format-file
Unable to import a code style xml format file – IDEs Support (IntelliJ Platform) | JetBrains
April 7, 2009 - > And I couldn't find an option to import an Xml file from external location. For this get an XML with IDEA code style settings, exit IDEA, put XML into [config directory]/codestyles/ (where other code style schemes are stored), and restart IDEA.
People also ask

How do I add code style XML in IntelliJ?
Out of the box, IntelliJ IDEA allows you to import settings in the IntelliJ IDEA code style XML or Eclipse XML Profile format. Press Ctrl+Alt+S to open the IDE settings and select Editor | Code Style. and select Import Scheme. Then select the necessary format.
🌐
exchangetuts.com
exchangetuts.com › index.php › how-to-import-xml-code-style-into-intellij-idea-15-1639945536230201
How to import .XML code style into IntelliJ Idea 15
How do I beautify XML in IntelliJ?
Either open your file in the editor and press Ctrl+Alt+Shift+L or in the Project tool window, right-click the file and select Reformat Code.
🌐
exchangetuts.com
exchangetuts.com › index.php › how-to-import-xml-code-style-into-intellij-idea-15-1639945536230201
How to import .XML code style into IntelliJ Idea 15
🌐
GitHub
github.com › Project-Books › book-project › issues › 339
Unable to import IntelliJ code style file · Issue #339 · Project-Books/book-project
September 15, 2020 - IntelliJ IDEA code style XML import failed with error message: The file doesn't seem to be avalid IntelliJ IDEA XML scheme, it should contain 'code_scheme root; element, found 'profiles' instead.
Author: Project-Books
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 205440070-Import-Of-IntelliJ-IDEA-Code-Style-XML-File-Does-Not-Change-Properties-Of-IntelliJ-IDEA-Code-Styles
Import Of IntelliJ IDEA Code Style XML File Does Not Change Properties Of IntelliJ IDEA Code Styles – IDEs Support (IntelliJ Platform) | JetBrains
December 2, 2016 - the problem is, that the file is obsolete. i used the file from this pull request which worked like a charm: https://github.com/bundeskanzler4711/styleguide/blob/11af152db373e565de1006f13944d3e07a75c8d7/intellij-google-style.xml
🌐
JetBrains
youtrack.jetbrains.com › issue › GTW-2994 › Attempt-to-open-Code-Style-import-sometimes-just-hangs
Attempt to open "Code Style import" sometimes just hangs
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions.
🌐
GitHub
github.com › jshiell › checkstyle-idea › issues › 387
Error while trying to set code style configuration from checkstyle xml · Issue #387 · jshiell/checkstyle-idea
March 12, 2018 - I am currently using the latest version of IntellIJ (2017.3.4) and the latest version of the plugin (5.18.2) and I am getting this error while trying to import settings from a checstyle xml configuration (Code Style -> Java > Import Scheme > Checkstyle configuration): CheckStyle Configuration import failed with error message: org.infernus.idea.checkstyle.exception.CheckstyleServiceException: Error executing command 'OpPeruseConfiguration': null
Author: jshiell
Find elsewhere
🌐
Xwiki
dev.xwiki.org › xwiki › bin › view › Community › CodeStyle › JavaCodeStyle
Java Code Style - XWiki
August 3, 2026 - For Linux: in case if installed ...etBrains\<IDEA VERSION> If codestyle is not imported automatically, go to Other Settings > Default Settings > Java codestyle > Set from (XML) > select file downloaded above....
🌐
JetBrains
youtrack.jetbrains.com › issue › IJPL-35000 › IDEA-is-completely-unusable-because-of-NotNull-method-CodeStyleSchemeImpl.getCodeStyleSettings-must-not-return-null
IDEA is completely unusable because of @NotNull method ...
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions.
🌐
JetBrains
youtrack.jetbrains.com › issue › CWM-7825 › cannot-import-code-style.xml-with-remote-intellij
cannot import code style.xml with remote intellij : GTW-3183
after importing of the code style xml, the code style panel cannot be open again. and after restart the remote intellij, the imported code style is gone.
🌐
GitHub
github.com › google › styleguide › issues › 69
intellij-java-google-style.xml was not applied correctly for Idea 14 · Issue #69 · google/styleguide
September 9, 2015 - I have copied intellij-java-google-style.xml to config/codestyles folder, but even so new GoogleStyle schema appear in settings it seems that this schema just ignore settings from provided xml and used default code style settings. In my case I have IntelliJ IDEA 14.1.4 community edition where it is reproduced.
Author: google
🌐
GitHub
github.com › duraspace › codestyle › blob › master › ide-support › intellij.md
codestyle/ide-support/intellij.md at master · duraspace/codestyle
IntelliJ IDEA allows you to bulk reformat entire projects or code modules ... Leave "Rearrange entries" unchecked (This will rearrange methods/variables based on arrangement settings in IDEA. This is not necessary.) Under Filters → Check File Masks and enter in "*.java, *.xml" (to ensure bulk reformatting only applies to Java and XML files) ... Run Checkstyle against the module. There likely will still be a few failures to fix manually.
Author: duraspace
🌐
OpenMRS
talk.openmrs.org › software › android client
How to import OpenMRSFormatter.xml in android studio - Android Client - OpenMRS Talk
January 4, 2021 - I’m facing problem in importing OpenMRSFormatter.xml to android client. I already installed eclipse code formatter and it was written in README.md setup steps that I should import given file on that XML link, but i can see that the XML needs to be import is already set in eclipse formatter config so I think the file is already imported but then according to steps I opened code style>java and code style>xml but first problem is that i can’t OpenMRS Formatter in scheme dropdown then I tried to imp...
🌐
JetBrains
youtrack.jetbrains.com › issue › IJPL-42311 › Intellij-IDEA-import-checkstyle-scheme-doesnt-work-properly
Intellij IDEA import checkstyle scheme doesn't work properly
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions.
🌐
JetBrains
jetbrains.com › help › idea › configuring-code-style.html
Code style schemes | IntelliJ IDEA Documentation
1 month ago - Click Show Scheme Actions and select Import Scheme. Then select the necessary format. In the dialog that opens, select the file with the settings and click Open. Rename the scheme if necessary and select Current scheme to apply the settings from the scheme to your code. You can export both project-level and IDE-level schemes in the IntelliJ IDEA code style XML, Eclipse XML Profile, or EditorConfig format (if the EditorConfig plugin is enabled).
🌐
JetBrains
jetbrains.com › help › idea › working-with-xml.html
XML | IntelliJ IDEA Documentation
To solve the problem, use the quick-fix that IntelliJ IDEA suggests.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360003437020-Intellij-IDEA-cannot-resolve-any-import-statement
Intellij IDEA cannot resolve any import statement – IDEs Support (IntelliJ Platform) | JetBrains
April 8, 2019 - I was setting up my desktop environment an encountered this bug while attempting to get the service that wa part of my first project to run locally. This was a large maven Java REST service project. I eventually discovered that IntelliJ does not read the maven settings.xml from the default config directory in your maven installation.