Solve the problem that 【Ctrl + /】 not automatically indent in idea

One: The problem is as follows:

Insert picture description here
Insert picture description here

Two: solutions

2.1 java files

Open settings-> Editor-> CodeStyle–> Java and make the following settings. The
Insert picture description here
effect is as follows:
Insert picture description here

2.2 xml file

Xml file setting 【Same reason】
Insert picture description here

Published 21 original articles · won 29 · visited 2819

Guess you like

Origin blog.csdn.net/VariatioZbw/article/details/105626147