I want to use a specific code style in my editor defined in an XML file, which looks something like this:
For users coming here for the same issue but recent IntelliJ version (like 20), it is a bit different now. Once you've exported your formatter in XML, then follow these steps:
If you see error "IntelliJ IDEA code style XML import failed with error message: null", check to ensure your XML file has the file definition at the top.
NOTE: This is for MacBook. I believe the difference won't be much in other platforms.