重命名类时,WebStorm 还会建议重命名该文件(如果文件具有相同的名称)。如果您接受该建议,WebStorm 会在其他文件的 import 语句中更新此文件的名称。

Keeping the name of a file in compliance with the name of the corresponding class

如果您拒绝此建议,可以在以后随时使用 重命名文件… 意图操作重命名该文件。