You need to do the setting to remove that behavior first, that you can find at
Settings > Tools > Actions on Save
Uncheck the Reformat code , you can pick some file types to apply this or not.