rename class with file name in one step in Visual Studio

后端 未结 6 1783
醉酒成梦
醉酒成梦 2021-02-18 13:29

I am a long year Java programmer, but currently I code in C#. I am accustomed, that when I change filename, also the class name changes and vice versa. This doesn\'t work in my

6条回答
  •  感动是毒
    2021-02-18 14:03

    As of Visual Studio 2015 Preview 5, the "Quick Actions and Refactorings" context menu contains a "Rename file to [class].cs" command.

提交回复
热议问题