1. IDEA single-line comments are in the first position by default;
Modification method: Enter File–>Settings–>Editor–>Code Style–>Java, modify Code Generation,
remove the checkmark in front of Line comment at first column, select Add a space at comment start, and select the second one to make // Add a space between the note and the comment, and then click Apply
2. Configuration file comments:
File–>Settings–>Editor–>Code Style–>XML, remove the checkmark before Line comment at first column