I installed VSCode extension Black Formatter, but it seemed not work.
Later, I found that it only work when there's no syntax error and it can't format wrong indentation.