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 › duraspace › codestyle › blob › master › ide-support › intellij.md
codestyle/ide-support/intellij.md at master · duraspace/codestyle
Select the duraspace-intellij-java-code-style.xml (under checkstyle/ide-support in the DuraSpace resources repo directory) ... Importing Checkstyle configuration, as supported through the Checkstyle plugin, provides a starting point for Code Style configuration
Author: duraspace
🌐
GitHub
github.com › apache › apex-core › tree › master › misc › ide-templates › intellij
apex-core/misc/ide-templates/intellij at master · apache/apex-core
... On the main menu, choose File | Import Settings. In the Import File Location dialog box that opens select the .settings/apex-style.jar. The Select Components to Import dialog box that opens next will only have an entry for code style which ...
Author: apache
Discussions

configuration - How to import .XML code style into IntelliJ Idea 15 - Stack Overflow
I want to use a specific code style in my editor defined in an XML file, which looks something like this: More on stackoverflow.com
🌐 stackoverflow.com
java - How to import code style scheme on Intellij from outside the IDE - Stack Overflow
If I want to add a global scheme to my Java code style I need to go to: Settings -> Code Style -> Java I click into the engine Icon -> Import Scheme And I select some XML with the code st... More on stackoverflow.com
🌐 stackoverflow.com
How to properly import Java code style settings with IntelliJ? - Stack Overflow
I tried to import Google's Java code style with IntelliJ. The style file contains the following configuration: ... More on stackoverflow.com
🌐 stackoverflow.com
java - Importing code style formatting settings into eclipse from intellij-idea - Stack Overflow
I've recently implemented the maven Check style plugging into my project and have changed all of the formater Settings in intellij (Which I use) to conform to this style guide (which they now do). More on stackoverflow.com
🌐 stackoverflow.com
🌐
JetBrains
jetbrains.com › help › idea › configuring-code-style.html
Code style schemes | IntelliJ IDEA Documentation
1 month ago - Press Ctrl+Alt+S to open settings and then select Editor | Code Style. 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.
🌐
Navy
pay.navy.lk › assets › domingo-de-euhexs › m8wmu.php
intellij import code style jar
As I asked above, could you please ... Copy to project, and Close there. Can Jetbrains please fix it? … To do so, create a normal project in IntelliJ, add that JAR file as a dependency....
Top answer
1 of 2
4

EDITED The file from Google uses an old (I suppose) key for filetype (java instead of Java). I have made the following changes and it works.

<ADDITIONAL_INDENT_OPTIONS fileType="JAVA">
  <option name="INDENT_SIZE" value="2" />
  <option name="CONTINUATION_INDENT_SIZE" value="4" />
  <option name="TAB_SIZE" value="8" />
  <option name="USE_TAB_CHARACTER" value="false" />
  <option name="SMART_TABS" value="false" />
  <option name="LABEL_INDENT_SIZE" value="0" />
  <option name="LABEL_INDENT_ABSOLUTE" value="false" />
  <option name="USE_RELATIVE_INDENTS" value="false" />
</ADDITIONAL_INDENT_OPTIONS>

I have made a fork of the GitHub repository with the file corrected (https://github.com/nhenneaux/styleguide/blob/gh-pages/intellij-java-google-style.xml).


The easiest way is to import the style file into ~/.IntelliJIdea2016.2/config/codestyles. Then you have to restart Intellij and go in the style settings to select GoogleStyle.

2 of 2
0

It seems that the format used in the configuration file differes from what IntelliJ (at least the version I'm using) expects.

I changed my code setting, exported them and looked for differences.
The ident setting were in the output file like so:

<code_scheme name="MyTestStyle">
    ...
    <codeStyleSettings language="JAVA">
        <indentOptions>
          <option name="INDENT_SIZE" value="2" />
          <option name="CONTINUATION_INDENT_SIZE" value="4" />
          <option name="TAB_SIZE" value="8" />
        </indentOptions>
    </codeStyleSettings>
</code_scheme>

Importing this file worked as expected.

🌐
Xwiki
dev.xwiki.org › xwiki › bin › view › Community › CodeStyle › JavaCodeStyle
Java Code Style - XWiki
August 3, 2026 - You can enable "Automatically add ... you want to document. ... Download codestyle-idea.xml. Go to IntelliJ's File > Settings and to Editor > Code Style and select Import Scheme > IntelliJ IDEA Code Style XML as shown on...
Find elsewhere
🌐
Blogger
musingsofaprogrammingaddict.blogspot.com › 2010 › 03 › import-code-style-settings-into.html
Import code style settings into IntelliJ IDEA - Musings of a Programming Addict
March 16, 2010 - Instead one has to do the following: Copy the settings XML file to INTELLIJ_SETTINGS_DIR/config/codestyles (where INTELLIJ_SETTINGS_DIR is the folder containing your IntelliJ settings; typically it is situated within your home directory, the name depends on your version of IntelliJ; in my case ...
🌐
CodingTechRoom
codingtechroom.com › question › import-code-style-settings-intellij-eclipse
How to Import Code Style Settings from IntelliJ IDEA to Eclipse - CodingTechRoom
In IntelliJ IDEA, export the code style settings using the 'Export' command in the preferences. Convert the exported settings to a suitable XML format if required. In Eclipse, go to the preferences menu and import the settings using the 'Import' option under 'Code Style'.
🌐
Medium
medium.com › swlh › configuring-google-style-guide-for-java-for-intellij-c727af4ef248
Configuring Google Style Guide for Java for IntelliJ | by Reed Odeneal | The Startup | Medium
November 16, 2020 - Next to the Scheme drop-down menu select the gear icon then Import Scheme > IntelliJ IDEA code style XML then select the intellij-java-google-style.xml file you downloaded from GitHub.
🌐
Googlesource
gerrit-review.googlesource.com › Documentation › dev-intellij.html
Gerrit Code Review - IntelliJ IDEA Setup
Go to File → Settings → Editor → Code Style. Click on the wrench icon with the tooltip Show Scheme Actions. Click on Import Scheme. Select the previously downloaded file intellij-java-google-style.xml.
🌐
Apache
lists.apache.org › thread › dsvyc2l81t690yc9l33yk9fhgq7tg19b
Intellij Idea Code Style settings jar ...
Email display mode: · Modern rendering · Legacy rendering · This site requires JavaScript enabled. Please enable it
🌐
JetBrains
blog.jetbrains.com › home › intellij idea › intellij idea 13: importing code formatter settings from eclipse
IntelliJ IDEA 13: Importing Code Formatter Settings from Eclipse - The JetBrains Blog
January 31, 2014 - All you need is to export settings ... the Export All button.), and then open IntelliJ IDEA Settings → Code Style → Java, click Manage, and import that XML file by simply clicking Import....
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 206377669-Share-Code-Style-
Share Code Style? – IDEs Support (IntelliJ Platform) | JetBrains
December 21, 2010 - Yeah the settings seam to be there ... the .jar file to the person who wants your settings. * they open phpstorm, go to FILE -> IMPORT SETTINGS * Select the file that you just sent them I recon they will then have the options ...
🌐
JetBrains
jetbrains.com › help › idea › settings-code-style.html
Code Style | IntelliJ IDEA Documentation
1 month ago - In this area, choose the code style scheme and change it as required. Code style scheme settings are automatically applied every time IntelliJ IDEA generates, refactors, or reformats your code.
🌐
CodingTechRoom
codingtechroom.com › question › import-jar-file-intellij-idea
How to Import a JAR File into IntelliJ IDEA: A Step-by-Step Guide - CodingTechRoom
Learn how to easily import JAR files into IntelliJ IDEA with this comprehensive guide and troubleshooting tips.