문제

There are two options in the Code menu of PyCharm: Reformat Code and Auto-Indent Lines. They seem to be doing the same thing: reformatting the code. Is there any difference?

Reformat Code can process multiple files in the same directory. Is this the difference? One file vs. batch processing?

도움이 되었습니까?

해결책

Auto-Indent Lines does just that and nothing more.

Reformat Code does much more -- it can add missing/remove unnecessary spaces/braces, split statement into multiple lines etc -- all accordingly to your Code Style.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top