Open settings-> Editor-> CodeStyle–> Java and make the following settings. The effect is as follows:
Xml file setting 【Same reason】