You should use codeStyleSettings.xml provided in .idea folder