此文件缩进了 4 个空格而不是 2 个

This file is indented with 4 spaces instead of 2

我有一个下载项目,但是它的缩进是4个空格,我的WebStorm设置是2个空格,所以会有这个警告。

This file is indented with 4 spaces instead of 2

有没有办法格式化WebStorm中的所有文件?


EDIT-1

据我们所知,我们可以使用 option + command + L 来格式化 current文件,但我们如何格式化项目中的所有文件?

也许使用 "reformat code" 功能。我一直在 Mac (Command-Option-L) 上使用它。您似乎可以对整个目录执行此操作:

https://www.jetbrains.com/help/webstorm/reformatting-source-code.html#refromat