The Rename File To Match Type Name quick fix is available once Telerik® JustCode™ has detected two types in one file or the name of the type is different from the name of the file. Telerik® JustCode™ suggests you to
move the type to another file or to rename file to match type name. By executing this fix, Telerik® JustCode™ automatically renames the file to match the name of the type.
Not supported: VB.NET
To rename file to match the name of the file
- Position the caret over the type identifier.
Press Alt+Enter. From the pop-up menu, select Rename File To Match Type Name.
The result is:
Rename File To Match Type Name Refactoring