1.在File->settings->Editor->Code Style

IDEA 设置代码行宽度_xml

2.在File->settings->Editor->Code Style->XML

IDEA 设置代码行宽度_JAVA_02