Keep the names of classes and files in compliance

When you rename a class, WebStorm also suggests renaming the file if it has the same name. If you accept the suggestion, WebStorm updates the name of this file in import statements in other files.

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

If you reject this suggestion, you can rename the file at any time later using the Rename file... intention action.