<p>By default IntelliJ IDEA 7.0.4 seems to use 4 spaces for indentation in XML files.  The project I'm working on uses 2 spaces as indentation in all it's XML.  Is there a way to configure the indentation in IntelliJ's editor?</p>

[{'answer_id': 38224, 'author': 'Huppie', 'author_id': 1830, 'author_profile': 'https://Stackoverflow.com/users/1830', 'pm_score': 5, 'selected': True, 'text': "<p>Sure there is. This is all you need to do:</p>\n\n<ul>\n<li>Go to</li>\n</ul>\n\n<pre>File -> Settings -> Global Code Style -> General</pre>\n\n<ul>\n<li>Disable the checkbox next to 'Use same settings for all file types'  </li>\n<li>The 'XML' tab should become enabled. Click it and set the 'tab' (and probably 'indent') size to 2.</li>\n</ul>\n"}, {'answer_id': 6286495, 'author': 'xiatica', 'author_id': 564811, 'author_profile': 'https://Stackoverflow.com/users/564811', 'pm_score': 3, 'selected': False, 'text': "<p>In IntelliJ IDEA 10.0.3 it's \nFile > Settings > Code Style > General</p>\n"}, {'answer_id': 26929608, 'author': 'VonC', 'author_id': 6309, 'author_profile': 'https://Stackoverflow.com/users/6309', 'pm_score': 0, 'selected': False, 'text': '<p>Note: make sure to not use the <em>same</em> file in two project, or your settings might revert to the default (4 spaces), instead of the custom XML tab indent size.</p>\n\n<p>See <a href="https://youtrack.jetbrains.com/issue/IDEA-130878" rel="nofollow">bug IDEA-130878</a>, for the latest IntelliJ IDEA 14 (Oct 2014)</p>\n'}]
['https://Stackoverflow.com/questions/37976', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1113/']